如何强制浏览器刷新网页的缓存版本 [英] How to force a browser to refresh a cached version of a webpage
问题描述
我有一个网站,因为虐待$ P $的ppared的apache的conf文件已责成用户缓存网站URL几年到未来。其结果是,当一个人访问该网站,他们经常不作任何尝试连请求的页面。浏览器只是加载从缓存中的HTML。
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 visits the site, they often make no attempt to even request the page. The browser just loads the HTML from cache.
本网站即将获得重大更新,我想为用户能够看到它。有我的方式来强制用户实际重新请求网页?我担心,对于一些用户来说,除非他们碰巧preSS F5,他们可能会看到旧的网页数年。
This website is about to get a major update, and I would like for users to be able to see it. Is there a way for me to force a user to actually re-request the webpage? I fear that for some users, unless they happen to press F5, they may see the old webpage for several years.
推荐答案
使用不同的URL。如果主入口点到您的网站(如主索引文件)的缓存,那么你就完蛋了...也许你要注册其他域名?
Use different URLs. If the main entry point to your website (like the main index file) is cached, then you're screwed... maybe you should register another domain name?
这篇关于如何强制浏览器刷新网页的缓存版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!