How does cache work?

Discussion in 'Programming' started by earnnet, Jan 30, 2012.

  1. #1
    I guess browsers store the hashes of cached items, and before loading the cached content they check whether the hash had changed. But in this case how can they query the current hash of files via HTTP? ... I'm very curious about this because I set two weeks expiry time (in .htaccess) for more file extensions on the webserver and the new content loads after the first refresh if changed. I thought it should be 2 weeks. Does this make sense?
     
    earnnet, Jan 30, 2012 IP