System Design · Junior · Question 48 of 75

What is an ETag, and why is it needed?

Explanation

The browser sends If-None-Match: <etag>, and if the resource hasn't changed, the server responds 304 Not Modified without a body - saving traffic. It's the cache revalidation mechanism used together with Cache-Control.

Further reading

Problem with a question

System Design · Junior · question 48

Test yourself

Take the System Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz