[thelist] How to Avoid Cache

Damien COLA damiencola at wanadoo.fr
Thu Jul 15 07:03:18 CDT 2004


caching has some god sides, like not having to re send everytime the
same piece of javascript to the client.

but if you're ok with your server sending  js file for each html visit.
then simply add a ?123456 at the end of your javascript path like that :
src="myjavascript.js?123456"

where 123456 is a random and ever changing value, something like "the
milliseconds" or the "epoch time" whatever that is called in javascript.

since the javascript url will always look different, no browser or ISP
will cache your javascript.

Cheers,

-----Original Message-----
Can anyone say from experience which directives (headers or META) work
in Win IE6?



More information about the thelist mailing list