A good idea, but no luck. However, I dug around for a little more
help with caching in general and found a block of code that fixed the
problem:
<?php
header('Expires: '.gmdate('D, j M Y H:i:s', time()-1800).' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
?>
I put this baby on the first line of my views/layouts/default.thtml
and the caching went away. I guess I just had to be a little more
insistent.
Hope this helps those who come after me,
Jeff
On Feb 6, 2007, at 12:23 PM, Chris Hartjes wrote:
>
> On 2/6/07, Jeff <[EMAIL PROTECTED]> wrote:
>>
>> Hello all,
>>
>> I'm having some problems with IE 6 and 7 pulling cached version of
>> pages in my Cake app when it shouldn't. Basically, there are several
>> pages which show additional information when the user is logged in,
>> but even once the user logs out, if she revisits one of these pages,
>> the additional information is still visible. Refreshing the page
>> cures the problem, but it's still a little annoying. I don't have
>> any of Cake's caching stuff turned on, and I've tried the cache-
>> control, pragma, and expires meta tags, but nothing seems to do the
>> trick.
>>
>> Any ideas?
>>
>
> Hi Jeff,
>
> Have you tried changing the debug setting in core.php to 1? 0 is the
> setting for production. Setting it to 1 makes it so it doesn't cache
> any results internally (it's the default setting I use during
> development).
>
> Hope that helps.
>
> --
> Chris Hartjes
>
> My motto for 2007: "Just build it, damnit!"
>
> rallyhat.com - digitial photo scavenger hunt
> @TheBallpark - http://www.littlehart.net/attheballpark
> @TheKeyboard - http://www.littlehart.net/atthekeyboard
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---