https://bugzilla.wikimedia.org/show_bug.cgi?id=44570
--- Comment #43 from Bawolff (Brian Wolff) <[email protected]> --- (In reply to comment #42) > Wait. I can not believe MediaWiki is sending pages with Cache-Control: > max-age=2592000 (2592000 = 30 days in seconds). > > I've accessed that page as anon and I got as a response: > > Cache-Control=private, s-maxage=0, max-age=0, must-revalidate > > And indeed I got the 1.21wmf8 meta tag. Since it has max-age=0, the browser > stores a copy of the page on the cache, but every time that page is > requested, > a request is made to the server as Roan said (with the If-Modified-Since > header). > > Of course, that's the response from the squids, but I'm pretty sure MediaWiki > also sends the max-age=0 to the squids. Sending a value as long as 30 days is > bizarre and not desired under any circumstance for a page (it should be good > for static resources, but not for anything dynamic). > > When changing wmf branch, maybe we should update $wgCacheEpoch, and MediaWiki > should send as a "Last-modified" header the min value between $wgCacheEpoch > and > page_touched (ideally, not only page_touched but page_touched of any page > linked or transcluded from it). Squids get longer expires because we purge pages when they get edited. See the cache control logic in OutputPage.php -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
