Click to See Complete Forum and Search --> : Cached pages


ckopacko
12-17-2007, 07:56 AM
I am having an issue with firefox not always bringing up new content. I want to make sure the page is always a NON-cached page when it is refreshed. I was trying to use a http header:

<META HTTP-EQUIV="Expires" CONTENT="Mon, 17 Dec 2007 08:00:00 EST">

to make it always expired. Is this the correct thing to do?

TJ111
12-17-2007, 08:29 AM
If your server is sending "304 Not Modified" header's, FF will use the cached file, as it will be faster then loading the identical file from the server. You can try using this:

<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">

Although it'd be better to use HTTP headers.