Firefox max-age based cache expiration behaving weirdly?

Max-age indicates age from the Date header of the response per spec. So yes, if there is clock skew then user-perceived wall-clock times will be off. But that shouldn't affect users in China, unless their clocks are off, because all the dates involved are converted to a canonical timezone before comparing, of course I do wonder where you found a server that's not running ntp!

Max-age indicates age from the Date header of the response per spec. So yes, if there is clock skew then user-perceived wall-clock times will be off. But that shouldn't affect users in China, unless their clocks are off, because all the dates involved are converted to a canonical timezone before comparing, of course.... I do wonder where you found a server that's not running ntp!

Im working on a virtual globe web application which serves a lot of map tiles, and I am trying to tweak the http headers that my server is sending to indicate the browser (Firefox) an expiration time for it to cache these tiles. The way im doing it is through Cache-Control header and max-age parameter. After a few tests, I realized that caching wasnt working for values below 1799 seconds (approximately 30 minutes).

Doing some debugging with firebug net panel, I found out that there is a 30 minutes desynchronization between the client and the server clocks. And I browse the cache contents for this request, I get this. Note that client times are GMT+1 and server are GMT, so the real skew is about 30 minutes.

So, the conclusion I get to is that Firefox is computing the expiration time from the server date header rather than the response arrival date on the client, is this right? If so this is a big issue, cause if I set a expiration of 1 hour, a user in China would never cach, how could I work this around? Thanks in advance.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions