NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item11193: typo in lib/Foswiki/PageCache.pm causing all (cached) pages to be delivered with a Last-Modified: header set to 01 Jan 1970:
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Engine |
FoswikiCache |
|
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