cache control at client

cache control at client

am 12.04.2007 13:57:01 von Alf C Stockton

I have set:-

in the header are of all my pages but still until the user does a reload
in both IE & Firefox they do not see the new screen.
Please tell me what else I can do to force the browser to not cache
anything ever.
I am not in a position of altering the client browser settings despite
this being an intranet system.

--
Regards,
Alf Stockton www.stockton.co.za

Q: What's yellow, and equivalent to the Axiom of Choice?
A: Zorn's Lemon.
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: cache control at client

am 12.04.2007 16:45:50 von php

What I generally use for no-cache is this:


Also, to force it to work correctly, I've seen people do stuff like this:



Pragma No-cache


This is an example of where to place the second header section

so that the "Pragama, No-Cache" metatag will work as it is supposed to.







Supposedly there are problems with the pragma no-cache method, which can
be solved by adding an extra head-tag with the pragma meta setting,
after the
I've never tried that though.

Mike


Alf Stockton skrev:
> I have set:-
>
> > in the header are of all my pages but still until the user does a
> reload in both IE & Firefox they do not see the new screen.
> Please tell me what else I can do to force the browser to not cache
> anything ever.
> I am not in a position of altering the client browser settings despite
> this being an intranet system.
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: cache control at client

am 12.04.2007 17:50:28 von Alf C Stockton

Mikael Grön wrote:
> What I generally use for no-cache is this:
>
>
> Also, to force it to work correctly, I've seen people do stuff like this:
>
>
>
> Pragma No-cache
>
>
> This is an example of where to place the second header section

> so that the "Pragama, No-Cache" metatag will work as it is supposed to.

>
>
>
>
>
>
> Supposedly there are problems with the pragma no-cache method, which can
> be solved by adding an extra head-tag with the pragma meta setting,
> after the
> I've never tried that though.
Interesting that this is exactly what is said at
http://www.htmlgoodies.com/beyond/reference/article.php/3472 881
but with a bit more detail.
Thank you Mikael


--
Regards,
Alf Stockton www.stockton.co.za

Suspicion always haunts the guilty mind.
-- Wm. Shakespeare
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: cache control at client

am 13.04.2007 00:36:34 von Rich Buggy

Alf

I had a similar problem trying to expire pages so that the user received
a "Page Expired" message when they clicked on the back button. I
discovered that if you set Cache-control to no-cache then Firefox/IE
ignore the expires date. The solution that I got working on IE7 was to
set Cache-control to must-revalidate and Expires to 1 second into the
future.

Firefox still didn't do what I wanted and I didn't test IE6.

Rich

PS: I was doing this through HTTP headers.

On Thu, 2007-04-12 at 13:57 +0200, Alf Stockton wrote:
> I have set:-
>
> > in the header are of all my pages but still until the user does a reload
> in both IE & Firefox they do not see the new screen.
> Please tell me what else I can do to force the browser to not cache
> anything ever.
> I am not in a position of altering the client browser settings despite
> this being an intranet system.
>
> --
> Regards,
> Alf Stockton www.stockton.co.za
>
> Q: What's yellow, and equivalent to the Axiom of Choice?
> A: Zorn's Lemon.
> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
--
Rich Buggy
rich@buggy.id.au
http://www.buggy.id.au/

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: cache control at client

am 13.04.2007 04:08:50 von bedul

i have some problem like u said. and i always fake the url by give
$url.="?".time();
soo it will reload.. and change to new page when refresh
----- Original Message -----
From: "Alf Stockton"
To: "php windows"
Sent: Thursday, April 12, 2007 10:50 PM
Subject: Re: [PHP-WIN] cache control at client


> Mikael Grön wrote:
> > What I generally use for no-cache is this:
> >
> >
> > Also, to force it to work correctly, I've seen people do stuff like
this:
> >
> >
> >
> > Pragma No-cache
> >
> >
> > This is an example of where to place the second header section

> > so that the "Pragama, No-Cache" metatag will work as it is supposed
to.

> >
> >
> >
> >
> >
> >
> > Supposedly there are problems with the pragma no-cache method, which can
> > be solved by adding an extra head-tag with the pragma meta setting,
> > after the
> > I've never tried that though.
> Interesting that this is exactly what is said at
> http://www.htmlgoodies.com/beyond/reference/article.php/3472 881
> but with a bit more detail.
> Thank you Mikael
>
>
> --
> Regards,
> Alf Stockton www.stockton.co.za
>
> Suspicion always haunts the guilty mind.
> -- Wm. Shakespeare
> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: cache control at client

am 13.04.2007 09:00:46 von php

Even more interesting is that it's exactly what's said here:
http://support.microsoft.com/kb/222064

Why write stuff that's already written? :)

Mike


Alf Stockton skrev:
> Mikael Grön wrote:
>> What I generally use for no-cache is this:
>>
>>
>> Also, to force it to work correctly, I've seen people do stuff like
>> this:
>>
>>
>>
>> Pragma No-cache
>>
>>
>> This is an example of where to place the second header section

>> so that the "Pragama, No-Cache" metatag will work as it is supposed
>> to.

>>
>>
>>
>>
>>
>>
>> Supposedly there are problems with the pragma no-cache method, which
>> can be solved by adding an extra head-tag with the pragma meta
>> setting, after the
>> I've never tried that though.
> Interesting that this is exactly what is said at
> http://www.htmlgoodies.com/beyond/reference/article.php/3472 881
> but with a bit more detail.
> Thank you Mikael

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php