SDURLCache icon indicating copy to clipboard operation
SDURLCache copied to clipboard

Etags override Cache-Control headers?

Open kortina opened this issue 13 years ago • 1 comments

You say here,

https://github.com/rs/SDURLCache/blob/master/SDURLCache.m#L478

that you skipping the examination of other headers because of http://tools.ietf.org/html/rfc2616#section-13.3.4 - this document seems to indicate, however, that Etags should be given precedence over Last-Modified headers. But I believe that if a response contains and Etag and a Cache-Control header, the client should respect the Cache-Control header values, like max-age, for example.

kortina avatar Apr 16 '12 19:04 kortina

Agreed, sorry I just found this while searching for answers to my own issue, this is even happening in standard NSURLCache, but what we're trying to do is completely legal based on the RFC

holyprin avatar Mar 14 '13 18:03 holyprin