From a6ac6a2cbbc7d83a420d832df5072132314166b0 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Wed, 6 Aug 2008 07:46:02 +0200 Subject: [PATCH] [ARCHIVE] Increase Expires value to one year That is in sync with the apache configuration. --- lib/Packages/Dispatcher.pm | 2 +- lib/Packages/DoIndex.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2