[Rt-commit] r9617 - rt/branches/3.6-RELEASE/lib/RT/Interface
ruz at bestpractical.com
ruz at bestpractical.com
Thu Nov 8 17:38:33 EST 2007
Author: ruz
Date: Thu Nov 8 17:38:33 2007
New Revision: 9617
Modified:
rt/branches/3.6-RELEASE/lib/RT/Interface/Web.pm
Log:
* add max-age along to Expires
Modified: rt/branches/3.6-RELEASE/lib/RT/Interface/Web.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Interface/Web.pm (original)
+++ rt/branches/3.6-RELEASE/lib/RT/Interface/Web.pm Thu Nov 8 17:38:33 2007
@@ -215,7 +215,7 @@
sub StaticFileHeaders {
# make cache public
- $HTML::Mason::Commands::r->headers_out->{'Cache-Control'} = 'public';
+ $HTML::Mason::Commands::r->headers_out->{'Cache-Control'} = 'max-age=259200, public';
# Expire things in a month.
$HTML::Mason::Commands::r->headers_out->{'Expires'} = HTTP::Date::time2str( time() + 2592000 );
More information about the Rt-commit
mailing list