Firefox browser does not reload the update CSS/JS files

前端 未结 4 2032
情话喂你
情话喂你 2021-01-14 10:23

I\'m having a problem in the firefox browser, because everytime I update my CSS or JS files, I need to clear the cache of my firefox browser to get the updated files. I\'m u

4条回答
  •  天涯浪人
    2021-01-14 10:40

    You could mess with the cache of the headers, but the easiest thing to do is simply append your updated elements with a querystring when you want them to change...

    I know this doesn't sound like a good solution, but when you begin minifying and combining your js and css files for performance reasons, most of the solutions will change the url to get these resources when they change anyway...

提交回复
热议问题