Amazon interview question

Explain how browser caching works

Interview Answers

Anonymous

20 Sept 2015

http request -> http response (directives contain info on what to cache, how long, etag). after initial cache, when request is made again after cache-control expiration, check for last updated info on the asset and either returns new value or cached value.

Anonymous

19 Feb 2011

"not modified" http response sent by server when browser requests content it has in cache