Re: Reloading changes JS files?

From: Date: Thu, 29 May 2008 10:59:48 +0000
Subject: Re: Reloading changes JS files?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-274804@lists.php.net to get a copy of this message
Richard Heyes wrote: >> When you do an explicit "refresh" or "reload" in your browser, it >> should ignore whatever it's got cached and refetch your javascript >> files regardless. > > With Interweb Explorer you need to hold down CTRL and CLICK on refresh > (as opposed to pressing CTRL+R say) to get a fresh copy. I guess it > depends on the headers you send on the page. Doing this will send a: > > Cache-Control: no-cache > > request header. Any cache-instructions on the request are really for intermediate caches and proxies only. The webserver itself doesn't do anything with them. If you send an unconditional fetch, you will get a document served. I don't know if an explicit refresh will cause the browser to do conditional gets or not, but it probably will. /Per Jessen, Zürich

« previous php.general (#274804) next »