From: Boris Z. <bo...@am...> - 2003-06-02 21:49:07
|
Am Montag, 5. Mai 2003 16:26 schrieb Boris Zentner: > Hi all, > > this patch boosts static pages. but only if the dates are compared correct. Changed files: Apache-PageKit/lib/Apache/PageKit.pm Index: Apache-PageKit/lib/Apache/PageKit.pm =================================================================== RCS file: /cvsroot/pagekit/Apache-PageKit/lib/Apache/PageKit.pm,v retrieving revision 1.218 diff -u -r1.218 PageKit.pm --- Apache-PageKit/lib/Apache/PageKit.pm 13 May 2003 13:16:54 -0000 1.218 +++ Apache-PageKit/lib/Apache/PageKit.pm 2 Jun 2003 21:43:22 -0000 @@ -611,7 +611,7 @@ my $ims = $apr->header_in('If-Modified-Since'); if ( $ims ) { my $t = Apache::Util::parsedate($ims); - if ( $t && $t <= $file_mtime ) { + if ( $t && $file_mtime <= $t ) { return HTTP_NOT_MODIFIED; } } -- Boris |