[Catalyst] Caching problem?

Brandon Black blblack at gmail.com
Wed Jan 11 20:32:53 CET 2006


On 1/11/06, Wade.Stuart at fallon.com <Wade.Stuart at fallon.com> wrote:
>
> 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
>

I've encapsulated this into a Catalyst::Plugin::Response::NoCache,
which when loaded as a plugin makes the following method available:

$c->res->no_cache;

Which sets all the headers mentioned in that PM node (+ max_age on the
Cache-Control line).

I'll wrap it up like a proper module with docs and a Makefile and all
that later tonight for publishing.

-- Brandon



More information about the Catalyst mailing list