]> git.deb.at Git - deb/packages.git/commitdiff
[ARCHIVE] Increase Expires value to one year
authorFrank Lichtenheld <frank@lichtenheld.de>
Wed, 6 Aug 2008 05:46:02 +0000 (07:46 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Wed, 6 Aug 2008 05:46:02 +0000 (07:46 +0200)
That is in sync with the apache configuration.

lib/Packages/Dispatcher.pm
lib/Packages/DoIndex.pm

index e8f0679434c67c55cb41a4f4494f03c09f2e6763..7ded77ef31f78077d4016e46d3637a0e6e7a5904 100755 (executable)
@@ -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 '<pre>'.Dumper(\%ENV, \%page_content, get_all_messages()).'</pre>';
index 2ffa1ac1fd8b5af46729cd78ac52f81bd1d3da55..ac4cd67437c35583e693f5b94c918d215727ecf1 100644 (file)
@@ -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;