How to turn off caching on Firefox?

后端 未结 17 803
失恋的感觉
失恋的感觉 2020-11-28 00:26

During development I have to \"clear cache\" in Firefox all the time in order to make it use the latest version of JavaScript files.

Is there some kind of setting (a

17条回答
  •  猫巷女王i
    2020-11-28 01:01

    Best strategy is to design your site to build a unique URL to your JS files, that gets reset every time there is a change. That way it caches when there has been no change, but imediately reloads when any change occurs.

    You'd need to adjust for your specific environment tools, but if you are using PHP/Apache, here's a great solution for both you, and the end-users.

    http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/

提交回复
热议问题