: How to force browser to download all static files every time? Is it possible to force browser to not using cache and download all files (html/js/css) every time? I am looking for a server side
Is it possible to force browser to not using cache and download all files (html/js/css) every time?
I am looking for a server side solution.
More posts by @Sent6035632
1 Comments
Sorted by latest first Latest Oldest Best
You can do this on the web server by sending the correct HTTP headers for those content types. See the W3C HTTP cache control rules. The most important header for your scenario is:
Cache-Control: no-cache
This directive alone should be enough to ensure no proxy or user agent will cache the content.
For Apache, use mod_headers to send cache directives based on the content type requested.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.