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 functionality for specifying a web cache expiration #60

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

c-lewis
Copy link

@c-lewis c-lewis commented Aug 18, 2021

It should be possible to use the cache-control header's no-cache directive to force web caches to revalidate cached results before providing them. Unfortunately, some proxy caches do not appear to respect no-cache, and will continue to provide results from cache until they have expired.

This commit allows the Redis and web cache expirations to be set independently, so that items can be cached to Redis with long expirations, but provided to the web with shorter expirations, forcing web caches to revalidate.

@ionutbaltariu
Copy link

This looks really nice. It is just sad that this project has been discontinued.

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

Successfully merging this pull request may close these issues.

2 participants