0
votes

Trying to figure out how we could possibly make use of etags mainly for the index/source page.

However, when writing the Etag in the response 123, subsequent requests does not include it from the browser to determine the response.

Any idea? Is this not possible for the landing page? Perhaps only intended for data requests?

enter image description here

enter image description here

Revalidation (i.e the use of ETags) only happens when a resource expires from the cache. But you've set an expiration date 15 years into the future, so there won't be an opportunity for revalidation. (And caching for that long is not a good idea for a landing page. See this article for a reasonable caching strategy.)Kevin Christopher Henry
@KevinChristopherHenry Yes, i discovered i need to set cache to zero basically. However, I have hit another issue. When redirecting (language change) to the landing page, it appears the etag if-not-modified is not revalidated despite various headers. I can not get chrome to revalidate on redirect from the server. Related: stackoverflow.com/questions/36722857/…mjs