Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-17-2007, 07:13 PM #1
- Join Date
- Dec 2005
- Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
- Thanked 637 Times in 625 Posts
An included js file does not like to clear out of cache
I'm using a 3rd party text editor which is configured using js files. The trouble is, any time I make a change to the config file, the browser (both Firefox and IE) refuses to clear the old config file out of cache and recognize the updated file. I have to manually type the path to the config file into the URL to bring up the js file and hit REFRESH, which finally brings in the newest version.
Is there any way to help the browser understand there is a new file? I've tried all kinds of "no cache"-type header commands and none have worked so far.
05-17-2007, 07:22 PM #2
- Join Date
- May 2007
- Thanked 0 Times in 0 Posts
I think that you must force refresh of the main page not that JS file..
Try this headers:
Code:Cache-Control: no-cache, must-revalidate Expires: Mon, 26 Jul 1997 05:00:00 GMT