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

Add stale-while-revalidate to CacheDirective #640

Open
jsha opened this issue Dec 1, 2021 · 0 comments
Open

Add stale-while-revalidate to CacheDirective #640

jsha opened this issue Dec 1, 2021 · 0 comments

Comments

@jsha
Copy link

jsha commented Dec 1, 2021

https://docs.rs/iron/0.6.1/iron/headers/enum.CacheDirective.html

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#cache_directives

It looks like CacheDirective is missing:

s-maxage
must-understand
immutable
stale-while-revalidate
stale-if-error

I'd like to be able to use stale-while-revalidate in docs.rs: rust-lang/docs.rs#845 (comment). Would you be willing to add these variants? Thanks!

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