Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Etags override Cache-Control headers? #31

Open
kortina opened this issue Apr 16, 2012 · 1 comment
Open

Etags override Cache-Control headers? #31

kortina opened this issue Apr 16, 2012 · 1 comment

Comments

@kortina
Copy link

kortina commented Apr 16, 2012

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.

@holyprin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants