Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: PageCache
Branches:
There's a typo in
lib/Foswiki/PageCache.pm
causing all (cached) pages to be delivered with a Last-Modified: header set to 01 Jan 1970:
-- a/lib/Foswiki/PageCache.pm
+++ b/lib/Foswiki/PageCache.pm
@@ -205,7 +205,7 @@ sub cachePage {
$text = Compress::Zlib::memGzip($text);
}
$etag = $time;
- $lastModified = Foswiki::Time::formatTime( $time, 'http', 'gmtime' );
+ $lastModified = Foswiki::Time::formatTime( $time, '$http', 'gmtime' );
}
my $headers = $session->{response}->headers();
Please check the formatTime() definition at
lib/Foswiki/Time.pm:250
and compare a similar use at
lib/Foswiki.pm:840
--
FlorianSchlichting - 21 Oct 2011