by tomgallard · 14y ago · 0 comments
It is clearly a problem that needs addressing though. In our web app we have added build steps that seek out all css/js/image links and append version numbers as a query string to defeat the cache.
This works quite well, but has the disadvantage of always clearing the cache for each new release, when in reality not all items need to be cleared.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html
"...request with a "Cache-Control: max-age=0" directive (see section 14.9), to force a check with the origin server."
Unless you can invalidate the cache here as well, then clearing it in the browser is no good (I suppose you could set your cache headers to disable caching on intermediate proxy servers)