0

My understanding of Cache-Control: no-cache is that it always asks the server to validate the cache.

I understand that "ETag" is used for validation in this case, how is this different from the client requesting validation using the "If-None-Match" header?

Here are the references I've seen https://medium.com/pixelpoint/best-practices-for-cache-control-settings-for-your-website-ff262b38c5a2

thxwelchs
  • 15
  • 5
  • Briefly: `ETag` is the *response* header that indicates what version the resource is, and `If-None-Match` if the subsequent *request* header that references that value. There are lots of good resources that explain caching, see [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching) for example. – Kevin Christopher Henry Mar 26 '23 at 05:34

0 Answers0