Jump to content

ETag caching, no no


boen_robot

Recommended Posts

I was just reading High performance web sites and there were some things I didn't understand. One that I'm interested in particular is the deal with ETag. It says

Rule 13: Turn off ETags(this was #12 when presented live)unique identifier returned in responseETag: "c8897e-aee-4165acf0"Last-Modified: Thu, 07 Oct 2004 20:54:08 GMTused in conditional GET requestsIf-None-Match: "c8897e-aee-4165acf0"If-Modified-Since: Thu, 07 Oct 2004 20:54:08 GMTBreaks caching:if ETag doesn't match, can't send 304
I'm not sure I get this.If I always send an ETag on a certain resource and only a different Last-Modified header when modified, don't I still have a match with the ETag, but force a download due to the Last-Modified? Or is the ETag supposed to be modified when the resource is and if so, doesn't that still force a download only when there's a modification? What's really broken?I wish I could have attended to @media...
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...