From: Frank Lichtenheld Date: Wed, 6 Aug 2008 05:46:02 +0000 (+0200) Subject: [ARCHIVE] Increase Expires value to one year X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=a6ac6a2cbbc7d83a420d832df5072132314166b0;p=deb%2Fpackages.git [ARCHIVE] Increase Expires value to one year That is in sync with the apache configuration. --- diff --git a/lib/Packages/Dispatcher.pm b/lib/Packages/Dispatcher.pm index e8f0679..7ded77e 100755 --- a/lib/Packages/Dispatcher.pm +++ b/lib/Packages/Dispatcher.pm @@ -351,7 +351,7 @@ sub do_dispatch { -last_modified => strftime("%a, %d %b %Y %T %z", localtime($last_modified)), -expires => strftime("%a, %d %b %Y %T %z", - localtime($last_modified + (12*3600))), + localtime($last_modified + (365*24*3600))), ); #use Data::Dumper; #print '
'.Dumper(\%ENV, \%page_content, get_all_messages()).'
'; diff --git a/lib/Packages/DoIndex.pm b/lib/Packages/DoIndex.pm index 2ffa1ac..ac4cd67 100644 --- a/lib/Packages/DoIndex.pm +++ b/lib/Packages/DoIndex.pm @@ -63,7 +63,7 @@ sub send_file { $headers{'-content-length'} = $size; $headers{'-vary'} = 'negotiate,accept-language'; $headers{'-last-modified'} = strftime("%a, %d %b %Y %T %z", localtime($mtime)); - $headers{'-expires'} = strftime("%a, %d %b %Y %T %z", localtime($mtime+(12*3600))); + $headers{'-expires'} = strftime("%a, %d %b %Y %T %z", localtime($mtime+(365*24*3600))); print header( %headers ); binmode INDEX;