Mobile app version of vmapp.org
Login or Join
Bryan171

: Try adding some cache-busting headers to a custom request with the VPN turned off, and see if you get the new file: $ curl -H "Cache-Control: no-cache" http://your.web.site/style.css If you

@Bryan171

Try adding some cache-busting headers to a custom request with the VPN turned off, and see if you get the new file:

$ curl -H "Cache-Control: no-cache" your.web.site/style.css

If you do, inspect the Cache-Control response header to see what it says (use --head on a new request or --dump-header <file> with the one above).



My CSS files are cached for 1 year. What I do to get around possible caching proxies is this:

RewriteRule ^/css/[0-9+]/(.*) /css/ [NC,L]


Then I change the URL in the HTML file every time I make a change that requires users to use the new CSS (non-breaking changes such as tweaking a shadow to make it look prettier, I don't update the revision number):

<link rel="stylesheet" href="/css/456/default.css">

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme