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

com.integralblue.httpresponsecache.compat.libcore.net.http.ResponseHeaders.chooseResponseSource(long, RequestHeaders) does not honor only-if-cached cache control directive #40

Open
pragmasoft-ua opened this issue Jun 19, 2013 · 0 comments

Comments

@pragmasoft-ua
Copy link

com.integralblue.httpresponsecache.compat.libcore.net.http.ResponseHeaders.chooseResponseSource(long, RequestHeaders) does not honor only-if-cached cache control directive

This method returns ResponseSource.CONDITIONAL_CACHE which then later does not satisfy response from cache even if it can.

Solution: check for request.onlyIfCached flag and return ResponseSource.CACHE irrespective of age and freshness

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

1 participant