[Catalyst] [PATCH] C::P::Static::Simple support for If-Defined-Since
Carl Franks
fireartist at gmail.com
Wed May 3 12:27:07 CEST 2006
Attached is a patch to add support to C::P::Static::Simple for the
If-Defined-Since header.
If a browser sends an If-Modified-Since header, and the file requested
has not been modified since that time, then a 304 "Not Modified" response
header will be sent instead of the file contents.
This allows less data to be sent over the network, if a browser already
has a cached version of the file.
You can disable this behaviour with the config:
MyApp->config->{static}->{ignore_if_modified_since} = 1;
Cheers,
Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: if-modified-since.patch
Type: text/x-patch
Size: 6626 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060503/e1b9b2ad/attachment.bin
More information about the Catalyst
mailing list