recherche

Maison  >  Questions et réponses  >  le corps du texte

javascript - Firefox 在请求未返回前刷新,会有缓存,前端应该怎么处理?

Chrome 下没有这个问题,在 Firefox 下却有这个问题,第一次遇到,有点摸不着头脑,不知道大家对这个有没有经验?

迷茫迷茫2896 Il y a quelques jours323

répondre à tous(3)je répondrai

  • 怪我咯

    怪我咯2017-04-10 15:32:40

    我是题主,我找到了解决方案:

    1. 不使用 <button>
    2. 在使用的表单中添加 autocomplete="off"

    资料来源:
    https://github.com/twbs/bootstrap/issues/793

    répondre
    0
  • PHPz

    PHPz2017-04-10 15:32:40

    在response header 中强制设置不缓存。

    répondre
    0
  • ringa_lee

    ringa_lee2017-04-10 15:32:40

    古老的办法再请求的后面加上时间戳

    répondre
    0
  • Annulerrépondre