Click to See Complete Forum and Search --> : need to disable js caching during development


sitcom37
12-10-2003, 05:13 AM
I'm trying to find a way of disabling the automated caching of external js files during web application development. I'm in the progres of creating a large number of pages in php accessing an oracle db and all is working fine except for the infernal caching of the js files. You change a script file and the browser refuses to re-load it with the changes.

Gollum
12-10-2003, 09:33 AM
Well, the quick way (using IE) is to ctrl-F5 to force-refresh everything in the page.

To make it automatic, you will need to check your server settings to add the following http headers to your javascript files...

cach-contro:no-cache
pragma:no-cache
expires:0