[pLog-svn] r3787 - plog/trunk/class/view/admin
Jon Daley
plogworld at jon.limedaley.com
Mon Jul 24 17:42:08 GMT 2006
Yes, now I see.
But, are you turning off the cache for the right page? Don't need to not
cache /summary.php?op=editPosts instead of the login page? I might be
misunderstanding which part is actually getting cached.
You just want to make sure to cache things when you can, and not turn off
too much caching.
The funny thing is, I do all of my web browsing via a proxy server, and I
haven't ever seen this problem.
On Tue, 25 Jul 2006, Mark Wu wrote:
> You if have proxy server in front of lifetype to cache the page content
>
> And you click any admin url like /summary.php?op=editPosts , you will get a
> login page.
>
> After, you logined, and you click the /summary.php?op=editPosts url , you
> will get the login page again ...
>
> Becase the proxy server cache this page.
>
> So, we better add no-cache header here to avoid this problem.
>
> Mark
>
>> -----Original Message-----
>> From: plog-svn-bounces at devel.lifetype.net
>> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
>> Sent: Tuesday, July 25, 2006 1:04 AM
>> To: plog-svn at devel.lifetype.net
>> Subject: Re: [pLog-svn] r3787 - plog/trunk/class/view/admin
>>
>> Why is this needed?
>>
>> On Mon, 24 Jul 2006, mark at devel.lifetype.net wrote:
>>
>>> Author: mark
>>> Date: 2006-07-24 16:22:14 +0000 (Mon, 24 Jul 2006) New
>> Revision: 3787
>>>
>>> Modified:
>>> plog/trunk/class/view/admin/adminloginview.class.php
>>> Log:
>>> Add no cache header to avoid proxy cache this page.
>>>
>>> Modified: plog/trunk/class/view/admin/adminloginview.class.php
>>> ===================================================================
>>> --- plog/trunk/class/view/admin/adminloginview.class.php
>> 2006-07-24 11:05:01 UTC (rev 3786)
>>> +++ plog/trunk/class/view/admin/adminloginview.class.php
>> 2006-07-24 16:22:14 UTC (rev 3787)
>>> @@ -25,6 +25,11 @@
>>> function AdminLoginView()
>>> {
>>> $this->View();
>>> + // Add the non cache headers to avoid proxy
>> cache this page.
>>> + $this->addHeaderResponse(
>> 'Cache-Control: no-cache, must-revalidate' );
>>> + $this->addHeaderResponse(
>> 'Last-Modified: ' . gmdate( "D, d M Y H:i:s" ) . ' GMT' );
>>> + $this->addHeaderResponse( 'Expires: now' );
>>> + $this->addHeaderResponse( 'Pragma: no-cache' );
>>> }
>>>
>>> /**
>>>
>>> _______________________________________________
>>> pLog-svn mailing list
>>> pLog-svn at devel.lifetype.net
>>> http://devel.lifetype.net/mailman/listinfo/plog-svn
>>>
>>
>> --
>> Jon Daley
>> http://jon.limedaley.com/
>>
>> In Carmel, NY, A man can't go outside while wearing a jacket
>> and pants that do not match.
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://devel.lifetype.net/mailman/listinfo/plog-svn
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>
--
Jon Daley
http://jon.limedaley.com/
Whenever people agree with me I always feel I must be wrong.
-- Oscar Wilde
More information about the pLog-svn
mailing list