[Catalyst-dev] Catalyst::Response->no_cache
Drew Taylor
taylor.andrew.j at gmail.com
Thu Jul 6 22:23:08 CEST 2006
On 7/6/06, Brandon Black <blblack at gmail.com> wrote:
>
>
> I really think it might as well just be a patch to the core
> Catalyst::Response, as it does nothing unless you ask it to.
I quite like the idea of it being in core. One thought about the patch: IIRC
the POSIX module is quite heavy. Use HTTP::Date instead (part of
libwww-perl) and it gets even simpler.
sub no_cache {
...
$self->header( 'Last-Modified' => time2str(gmtime);
...
}
Drew
--
----------------------------------------------------------------
Drew Taylor * Web development & consulting
Email: drew at drewtaylor.com * Site implementation & hosting
Web : www.drewtaylor.com * perl/mod_perl/DBI/mysql/postgres
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst-dev/attachments/20060706/1acd5b82/attachment.htm
More information about the Catalyst-dev
mailing list