In each release, we simply add a monotonously increasing integer to the root path of all our static assets, which causes the client to reboot (we saw that the query string method was interrupted in IE6 before). For example:
- Issue 1: http://www.foo.com/1/js/foo.js
- Release 2: http://www.foo.com/2/js/foo.js
Each version requires link rewriting, but we have created functionality for automatically changing links in our deployment tools.
Once you do this, you can use the Expires / Cache-Control headers, which allow the client to cache JS resources βforeverβ, as the path changes with each version, which, in my opinion, is what @JasonCohen did.
argv0 Sep 10 '08 at 16:03 2008-09-10 16:03
source share