On 11-10-01 01:07 AM, Roan Kattouw wrote:
On Sat, Oct 1, 2011 at 8:03 AM, Daniel Friesen lists@nadir-seen-fire.com wrote:
The central notice banner is only shown to logged in users. Why are we even loading the notice in a separate out of band http request. And not bothering to cache it at that.
It is cacheable (public, max-age=300, s-maxage=300) but for some reason my browser (FF 6.0.1) isn't caching it. There are all sorts of reasons CN needs to load the notice using JS, at least for anons. For logged-in users, I guess it might be possible to move the logic server-side, but that would be kind of stupid if you can't also do that for logged-out users. A height reservation would probably be best.
Roan
Actually, it seams to be:
On secure I get: Cache-Control: public, s-maxage=600, max-age=0 There is a Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=345181 It's marked fixed but I'm not so sure.
On normal en.wp I get: Cache-Control: private, s-maxage=0, max-age=0, must-revalidate
There's also no ETag or Last-Modified so even if there is a max-age that must-revalidate could have the effect of nullifying the max-age.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]