[Catalyst] Caching problem?

Wade.Stuart at fallon.com Wade.Stuart at fallon.com
Wed Jan 11 18:58:52 CET 2006





I have found that this ( http://www.perlmonks.org/index.pl?node_id=239698 )
post has a really good coverage on all browsers I have ever tested. Some
ignore no-cache some ignore it in Pragma but this seems to cover all bases.

Just format the header like below,  but include all of the tags.

-Wade



catalyst-bounces at lists.rawmode.org wrote on 01/11/2006 10:55:41 AM:

> On Wed, Jan 11, 2006 at 08:47:54AM -0800, Dr. Jennifer Nussbaum wrote:
> >   I have a Catalyst application that does the usual database thingies.
I
> >   just learned that when database info changes, the pages arent getting
> >   updated because theyre being cached, so if someone goes to
> >   www.mysite.com/catalog/view/242, they get the same content even if
> >   things have changed. Users can "reload" in the browser and get the
> >   right content.
> >
> >   Whats the easiest way that this doesnt happen?
>
> You can set the response headers:
> Cache-control: no-cache
> Pragma: no-cache
>
> $c->response->headers->header( ?Cache-control? => 'no-cache' );
> $c->response->headers->header( ?Pragma? => 'no-cache' );
>
> tjc
>
> --
> Turning and turning in the widening gyre/The falcon cannot hear the
falconer;
> Things fall apart, the centre cannot hold/Mere anarchy is loosed
> upon the world
> (gpg --keyserver www.co.uk.pgp.net --recv-key B1CCF88E)
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst




More information about the Catalyst mailing list