Firefox still caching.
am 29.03.2007 16:03:30 von -Lost
I have tried the defacto:
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
....but Firefox keeps on caching results form a POST'd form.
Anyone know of any tricks or other headers to send to tame Firefox's cache?
-Lost
Re: Firefox still caching.
am 29.03.2007 17:18:31 von Steve
"-Lost" wrote in message
news:-_CdnfFdUfW8WpbbnZ2dnUVZ_silnZ2d@comcast.com...
|I have tried the defacto:
|
| header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
| header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
|
| ...but Firefox keeps on caching results form a POST'd form.
|
| Anyone know of any tricks or other headers to send to tame Firefox's
cache?
there is NO guarantee that ANYTHING you do will have an effect on the
browser. that's just the way it is. you should also set pragma params and
put meta-pragma directives at the top AND bottom of your html. microsoft had
a whole long write-up on that one b/c their own browser didn't behave as web
designers thought it should - they of course offered their explanation of
why things were/are the way they were/are...but, at least they gave that as
a plausible solution.
hth,
me
btw, how do you KNOW ff is caching?
Re: Firefox still caching. Slightly OT: Apache woes.
am 29.03.2007 17:32:36 von -Lost
"Steve" wrote in message news:4PQOh.20$Ai4.7@newsfe06.lga...
>
> "-Lost" wrote in message
> news:-_CdnfFdUfW8WpbbnZ2dnUVZ_silnZ2d@comcast.com...
> |I have tried the defacto:
> |
> | header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
> | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
> |
> | ...but Firefox keeps on caching results form a POST'd form.
> |
> | Anyone know of any tricks or other headers to send to tame Firefox's
> cache?
>
> there is NO guarantee that ANYTHING you do will have an effect on the
> browser. that's just the way it is.
Of course. I just thought there might be some existing known kludges.
> you should also set pragma params and
> put meta-pragma directives at the top AND bottom of your html.
Placing meta information at the bottom? Before the BODY I imagine? Is that valid?
> microsoft had
> a whole long write-up on that one b/c their own browser didn't behave as web
> designers thought it should - they of course offered their explanation of
> why things were/are the way they were/are...but, at least they gave that as
> a plausible solution.
Thanks. Does that write-up exist still, or no?
> btw, how do you KNOW ff is caching?
It continuously takes a refresh or two (of the form page) before I get my POST'd results
to display the updated value. I figure it had to be Firefox as the PHP context simply
dumps the contents of $_POST. If my variable was continually in error, it must have been
Firefox sending it right?
Or some combination of me not setting the correct headers, assuming there are any that
will make a difference.
http://us3.php.net/manual/en/function.header.php#72652
Led me to believe it might actually be an Apache issue. I did however try using
MultiViews as "guesswho" suggested to no avail. I am not familiar with any other content
negotiation mechanisms of Apache.
*shrugs*
-Lost
Re: Firefox still caching. Slightly OT: Apache woes.
am 29.03.2007 17:52:15 von Steve
| Placing meta information at the bottom? Before the BODY I imagine? Is
that valid?
'valid' only applies to browsers that are 100% w3c compliant. as NONE exist,
the better question is always, 'will it make my browser explode?' we're not
going to kill anything here. but, we will be getting the desired result.
put the first meta in the head like a good boi. put the next meta just
before