Handling Large Blobs medium
What is an E-Tag (Entity Tag)?
- A A price tag.
- B An electronic signature.
- C Use for caching. It is a hash of the file content. Browser sends `If-None-Match: [hash]`. If server sees the file hasn't changed, it returns `304 Not Modified` (0 bytes body).
- D A specialized HTML tag.
Answer: C. Use for caching. It is a hash of the file content. Browser sends `If-None-Match: [hash]`. If server sees the file hasn't changed, it returns `304 Not Modified` (0 bytes body).
Saves massive bandwidth on re-visiting pages.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- Why do modern sites serve images in WebP or AVIF format?
- What does the acronym BLOB stand for?
- Why do we sometimes convert binary images to Base64 strings?
- What is an 'Origin Shield' or 'Mid-Tier Cache' in a CDN architecture?
- For a feed with 100 images, why use 'Lazy Loading'?
- How does HLS/DASH handle a user moving from WiFi to 4G (Variable Bandwidth)?