I do the following: use POSIX qw( strftime );
$self->header_add( # date in the past -expires => 'Sat, 26 Jul 1997 05:00:00 GMT', # always modified -Last_Modified => strftime('%a, %d %b %Y %H:%M:%S GMT', gmtime), # HTTP/1.0 -Pragma => 'no-cache', # HTTP/1.1 -Cache_Control => join(', ', qw( no-store no-cache must-revalidate post-check=0 pre-check=0 )), ); It's a whole bunch of guns, but one of them usually ends up working. Rob On 12/15/05, Webmaster Techcode.NET <[EMAIL PROTECTED]> wrote: > Hello. > > I already have those pragmas inside templates - as meta tags. So it's not > browsers fault. > > But I doubpt that proxy parses html - adding that to header should do the > trick as this > "Free Proxy" claims that it folows some RFC regulation related to > caching/proxying. > > Thanks. > > ----- Original Message ----- > From: "Cees Hek" <[EMAIL PROTECTED]> > To: "Webmaster Techcode.NET" <[EMAIL PROTECTED]> > Cc: "CGIAPP" <cgiapp@lists.erlbaum.net> > Sent: Thursday, December 15, 2005 3:14 PM > Subject: Re: [cgiapp] Working with proxies. > > > > On 12/14/05, Webmaster Techcode.NET <[EMAIL PROTECTED]> wrote: > > > I have problems with my application when it's accessed via Proxy. > > > > > > Aparently it's output get's cached - so user always get's login form over > > > and over. > > > > Sounds like the proxy is setup to cache everything, instead of just > > content that has proper caching headers set. Just add the following > > to your app and maybe it will stop the proxy from caching: > > > > $self->header_add(-pragma => 'no-cache'); > > > > That is from memory, so I might be off slightly, but if you search the > > internet for 'HTTP cache control headers' you will probably come up > > with lots of info. > > > > Cheers, > > > > Cees > > > --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]