Handling Large Blobs easy
What is the purpose of the 'Content-Type' (MIME type) header like `image/png`?
- A To secure the file.
- B To tell the browser how to interpret and render the binary data.
- C To compress the file.
- D To naming the file.
Answer: B. To tell the browser how to interpret and render the binary data.
Without `Content-Type`, the browser might try to execute an image as a script (security risk) or display text as garbage.
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)?