Possible duplicate:
CSS file caching
I want users to always get the latest version of my code.
However, setting it up so that browsers do not cache files is bad, since you would have to download fresh images of each page. I want him not to use the cached copy from the previous version. For example. Using a cached copy of version 1.2 of JS with a site version of 1.3.
One of the ways I've seen involves changing the file name in each version and linking to that different file name in each version (for example, "myscript1.3.js"). This seems like a lot of effort and a little hacked.
Is there a better way to do this?
javascript css browser-cache
Mark w
source share