data storage layer which stores a subset of data, typically transient in nature, so that future requests for that data are served up faster than is possible by accessing the data’s primary storage location. Caching allows you to efficiently reuse previously retrieved or computed data.
price $52.65 Basically, it’s just an address book of pre- calculated data. A value is stored under a key (jargon alert: key/val store) so that it can be quickly referenced later.
user’s computer) ▸ Browser assets cache (on user’s computer) ▸ Browser network requests cache (on user’s computer) ▸ DNS cache (on DNS server) ▸ Web server requests cache (on website’s server) ▸ Database records cache in web application (on website’s server) ▸ Database query cache in database (on website’s database server) ▸ CDN cache (on website’s CDN server) CACHING: TYPICAL WEB APPLICATION CACHING
THE TRUTH ▸ Responses (answers) you get to queries (for questions) now may or may not be the truth. ▸ Reproducing behavior with truth variability is hard. Reproducing behavior with 15 layers of truth variability, exponentially so.
THE TRUTH ▸ Responses (answers) you get to queries (for questions) now may or may not be the truth. ▸ Reproducing behavior with truth variability is hard. Reproducing behavior with 15 layers of truth variability, exponentially so. HOW DO WE GET AROUND THIS?
NEW VALUE When we “invalidate” the cache, we tell the system that is storing the value, that it needs to forget what it knows now, and get a new value to store.
your browser. (⌘ (command) + ⇧(shift) + R) YOU CAN FORCE A INVALIDATION BEFORE THE CACHE EXPIRATION DATETIME [ ] WHY DOESN’T THIS SOLVE ALL OF MY PROBLEMS THEN?