How to force a browser to refresh a cached version of a webpage

前端 未结 9 601
粉色の甜心
粉色の甜心 2020-12-08 10:06

I have a website that because of an ill-prepared apache conf file has instructed users to cache a website URL several years into the future. As a result, when a person visit

9条回答
  •  忘掉有多难
    2020-12-08 11:07

    There are several options to achieve this First In the section add meta tag:

    
    

    Basically the browser won't cache the page.

    Another option is to set sessions, this will force the browser to a new session each time they go, and thus make the browser get the page from the server instead of the cache

     
    

    You can add this to your website for a couple of days and then remove. I really don't know if it will do, but perhaps you will find it useful

提交回复
热议问题