PDA

View Full Version : javascript files out of date: cache problem?



francesco
04-03-2008, 05:03 AM
Hi all,

I have a problem with my javascript files: the scripts executed by the browser are out of date (even worse, I deleted a file and its functions were executed...).

I tried to clear the browsers cache (IE and Mozilla), manually delete the cache files (and the cookies too), restart the browsers, restart the workstation...
...but without results.

Anyway, if I go to the site for the first time from another workstation, the files are up to date (but, of course, I won't be able to update them again).

I was using php fastcgi configuration (maybe it could store js file in a cache), and I switched to the normal php5 configuration, but this didn't help me.

Any idea?

Thanks in advance,
Francesco

r2b2
04-03-2008, 02:42 PM
Are you behind a proxy/cache server of some kind or directly going out to the internet?

francesco
04-04-2008, 09:12 AM
Exact,

the problem came from the proxy cache and it concerned only the js files because I downloaded them with the following syntax:

src="myfile.js"

When I used src="myfile.js?RANDOMNUMBER" I stopped having problems.

Thanks for having replied,
Francesco