Just how can I create an internet browser to download and install a new duplicate of a website when it assumes that its cached duplicate is still legitimate?
Occasionally when I make tiny adjustments to an internet site, I see that particular internet browsers are really persistent concerning downloading and install the web page once more. Both F5 and also CTRL-R wear and also the only means to repair it is to experience the alternatives and also by hand inform it to clear the cache. I've made use of PHP before to send a cache-flush header, yet exists a less complex or far better means?
It relies on what's cached. If it's the major web page after that the only means to stop caching is making use of the no cache HTTP header.
Nonetheless remember that JS and also CSS documents are additionally generally cached. One method to revoke them when they transform made use of by several internet sites - including this - is adding a dummy number after the '?'. Every little thing after the '?' is overlooked by the web server, yet given that the URL transforms the internet browser constantly re-downloads it.
An instance extracted from this really web page :
http://sstatic.net/webmasters/all.css?v=ac775b7bd951. The "ac775b7bd951" originates from unstable, the versioning system made use of. You can do something comparable with svn (instance : all.css?revision =123).