[geeklog-devel] No Cache (Was: AOL8)

Jason Whittenburg me at jasonwhittenburg.com
Tue Mar 11 09:09:32 EST 2003


We could also add the following to the PHP code for the header to make
sure pages are not cached, this should cover most every browser and
proxy/cache system out there, or so I am told:

<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");                 // A
date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");    // So
it's always modified
header("Cache-Control: no-store, no-cache, must-revalidate");     //
HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");                                       //
HTTP/1.0
?>

Also PHP now has a function called session_cache_limiter that we can use
in future versions when we are suing PHP sessions.

-Jason 

-----
Jason Whittenburg
Internet Security Systems, Inc.
404.236.4043 

-----Original Message-----
From: geeklog-devel-admin at lists.geeklog.net
[mailto:geeklog-devel-admin at lists.geeklog.net] On Behalf Of Tony Bibbs
Sent: Monday, March 10, 2003 4:43 PM
To: geeklog-devel at lists.geeklog.net
Subject: Re: [geeklog-devel] AOL8 (fwd)


I already had that meta tag there but it was enclosed in an HTML
comment.  
I'm not sure that matters so I removed the comments and will see if I
get 
less complaints.

--Tony

 On Mon, 10 Mar 2003, Tom Willett wrote:

> Yes AOL does cache pages (and downloads parts of the same page from 
> multiple
> servers at the same time) but so does Squid and most other caching
proxies.  
> I learned a long time ago that I had to turn off my local squid to do
much 
> web page editing successfully.  You can also just make sure that each
call 
> has a ? in it or add a ? to the end of the url.  This signals the
proxy that 
> this page is not static.  And if you have lots of problems make sure
your 
> website has the no-cache pragma (<meta HTTP-EQUIV="Pragma"
CONTENT="no-
> cache">).  AOL respects that.
> 
> TomW
> On Mon, 10 Mar 2003 14:55:58 -0600 (CST), Tony Bibbs wrote
> > Can anybody else confirm this?
> > 
> > -- 
> > Tony Bibbs          "I guess you have to remember that those who
don't
> > tony at tonybibbs.com  hunt or fish often see those of us who do as

> >                     harmlessly strange and sort of amusing. When you

> >                     think about it, that might be a fair
assessment." 
> >                     --Unknown
> > 
> > ---------- Forwarded message ----------
> > Date: Mon, 10 Mar 2003 14:16:35 -0600
> > From: maximus at dublin.com
> > To: tony at tonybibbs.com
> > Subject: AOL8
> > 
> > I had this problem when using AOL to update my site (GL powered and 
> > proud
> of it).
> > 
> > The issue seemed to revolve around how AOL cached the page.  the 
> > users
> _were_ logged in but AOL didn't reload the page, it just used the old 
> page
> instead.
> > 
> > I was using an older version of AOL (5.0 or so I think).  If you use

> > the
> refresh button a couple of times after logging in the problem went 
> away.
> > 
> > AOL creates a cache of the page "for faster viewing" that it uses on

> > the
> next call.  I think MSN does the same.  These static pages then live 
> on the
> ISP's servers, increasing load time by attempting to cut out the
farther 
> server.
> > 
> > I had only to refresh a couple of time in each case and then AOL 
> > seemed to
> get the idea that maybe this tatic wasn't working in my case.  Works 
> fine
> now, but I havent used that computer in a few months.
> > 
> > Maybe the solution, maybe I have a bad case of anal-audience.  Just 
> > what
> happened in my case.
> > --
> > __________________________________________________________
> > Sign-up for your own FREE Personalized E-mail at Mail.com
> > http://www.mail.com/?sr=signup
> > 
> > _______________________________________________
> > geeklog-devel mailing list
> > geeklog-devel at lists.geeklog.net 
> > http://lists.geeklog.net/listinfo/geeklog-devel
> 
> 
> 
> --
> Tom Willett
> tomw at pigstye.net _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-devel
> 

-- 
Tony Bibbs          "I guess you have to remember that those who don't
tony at tonybibbs.com  hunt or fish often see those of us who do as      
                    harmlessly strange and sort of amusing. When you  
                    think about it, that might be a fair assessment." 
                    --Unknown


_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://lists.geeklog.net/listinfo/geeklog-devel




More information about the geeklog-devel mailing list