Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6685343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:02:49+00:00 2026-05-26T05:02:49+00:00

Im working on a virtual globe web application which serves a lot of map

  • 0

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. For example, if the server sends this header indicating a 3600 seconds expiration time:

Date            Fri, 14 Oct 2011 07:46:12 GMT
Server          Apache/2.2.13 (Fedora)
X-Powered-By    PHP/5.2.11
Connection      close
Cache-Control   max-age=3600
Content-Length  47864
Content-Type    image/jpeg

And i browse the cache contents for this request, i get this.

Last Modified   Fri Oct 14 2011 09:16:16 GMT+0100 (Hora de verano GMT)
Last Fetched    Fri Oct 14 2011 09:16:16 GMT+0100 (Hora de verano GMT)
Expires         Fri Oct 14 2011 09:46:11 GMT+0100 (Hora de verano GMT)

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:02:50+00:00Added an answer on May 26, 2026 at 5:02 am

    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!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a graphics application that is using virtual classes fairly extensively. It
We all know that working with S3 is a pain: deleting virtual directories requires
I'm working on a project, using Python/Django running on a Virtual Private Server, which
I'm working with an Oracle DB, and I'm trying to map this class: public
I'm working on a virtual file system which isn't disk based, kind of like
I'm working on a virtual piano keyboard that processes imported mp3 sound samples. I've
I'm working on a web site project that is currently tracked in svn but
I'm working locally across two domains. I have enterprise.local and application.local virtual hosts on
An application I'm working on takes 338MB private bytes and 780MB virtual bytes right
I was working the last 5 years with the assumption that virtual inheritance breaks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.