Amazon Interview Question

Explain how browser caching works

Interview Answers

Anonymous

Sep 20, 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

Feb 19, 2011

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