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

RFC 5861: HTTP Cache-Control Extensions for Stale Content #84

Open
lucasmazza opened this issue Apr 17, 2016 · 4 comments
Open

RFC 5861: HTTP Cache-Control Extensions for Stale Content #84

lucasmazza opened this issue Apr 17, 2016 · 4 comments

Comments

@lucasmazza
Copy link
Collaborator

Would be interesting to experiment with the RFC 5861 to implement support for stale-if-error and stale-while-revalidate extensions.

stale-if-error might be an easy one but I wonder how would be the best approach for the background revalidation on stale-while-revalidate - maybe a soft dependency on concurrent-ruby as an async abstraction to perform the revalidation request on the background.

@lucasmazza lucasmazza added this to the v2.0.0 milestone Apr 17, 2016
@dasch
Copy link
Contributor

dasch commented Apr 26, 2016

We'd be interested in stale-if-error as well, as our current resilience layer is sort of ad-hoc. However, would max-stale not suffice?

@lucasmazza
Copy link
Collaborator Author

@dasch I guess it could cover a few similar use cases, but those directives have a few different caveats - max-stale can be used by clients who know that they can use the cached responses for longer than the server recommends, while stale-if-error would only be in play if a request fails.

@lucasmazza lucasmazza removed this from the v2.0.0 milestone Nov 16, 2016
@tadas-s
Copy link

tadas-s commented Jan 13, 2017

@lucasmazza are you still considering implementing this? (I see you dropped it from v2.0.0 milestone).

@lucasmazza
Copy link
Collaborator Author

@tadas-s it's something I would to see implemented but I don't plan to work on this anytime soon

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

3 participants