
Lesson 07 · 11 min
Caching: Cache-Control and ETag
The fastest request is the one that never happened. The server says how long a response may be kept.
The Cache-Control header in a response tells the browser and intermediate caches (CDNs) what to do with it. max-age=3600 — use the cache for an hour without asking the server. no-store — don't store it at all. no-cache — you may store it, but recheck with the server before using it. private — only in the user's browser, public — in a CDN too.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.