How to turn off caching on Firefox?

后端 未结 17 778
失恋的感觉
失恋的感觉 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条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 01:16

    You can use CTRL-F5 to reload bypassing the cache.

    You can set the preferences in firefox not to use the cache

    network.http.use-cache = false
    

    You can setup you web server to send a no-cache/Expires/Cache-Control headers for the js files.

    Here is an example for apache web server.

提交回复
热议问题