Firefox browser does not reload the update CSS/JS files

前端 未结 4 2033
情话喂你
情话喂你 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:37

    There are a couple of ways to make sure the users see the latest content on your web pages. Refresh the pages at certain time intervals or block the browser from caching the web page, each time they return they will load the data fresh.

    ===== Do not allow the user to store the data in cache at all:

     
    

    Add this between the and tag and the page will never be cashed in the first place.

    ===== Refresh the page after a certain time interval:

    
    

    Add this between the and tag and the page will never be cashed in the first place.


    Another solution : Here


    or :

    <%@ OutputCache Location="None" VaryByParam="None" %>
    

    source : Here

提交回复
热议问题