I use ETags to improve performance. I decided to use an Etag that is valid on Server, Client and Proxy.
But how is this handled if the proxy has saved the ETag? Does the Proxy still ask the website if the ETag is valid or does the proxy itself just answers "I know this one. No need to ask the server?"
Or in other words, does the following scenario still work if ETag-Caching on Proxy is enabled?
- Browser does a request. An ETag "ABBA" is returned
- Browser does another request to the server. The ETag "ABBA" is recognized, a 304 is returned 2.1 Browser uses local cache
- Browser does another request to the server, sending the ETag "ABBA". This time the Server decides that the data has changed, Therefore it returns a new Response with a new Etag.
If between the client and the server there is a proxy that knows the ETag, does it still ask the server if the Etag is valid or does the request end there if the Proxy once knows the etag?