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

feature request stale_while_revalidate #164

Open
enthusiasmus opened this issue Apr 28, 2020 · 1 comment
Open

feature request stale_while_revalidate #164

enthusiasmus opened this issue Apr 28, 2020 · 1 comment

Comments

@enthusiasmus
Copy link

Hi guys!

We currently use rack-cache in production and we are quite happy with it.
We discovered the stale_while_revalidate flag for expires_in in rails (https://api.rubyonrails.org/classes/ActionController/ConditionalGet.html#method-i-expires_in).

Is there any chance rack-cache could support something like this?
Returning the cache hit, but also forwarding the request to the rails app for revalidation.

Thanks in advance,
best regards,
Lukas

@grosser
Copy link
Collaborator

grosser commented Apr 28, 2020

sounds reasonable ... PR welcome ... just make sure it does not add overhead for the default usecase :)

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