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

ETag-based caching #302

Open
jace opened this issue Apr 19, 2021 · 0 comments
Open

ETag-based caching #302

jace opened this issue Apr 19, 2021 · 0 comments

Comments

@jace
Copy link
Member

jace commented Apr 19, 2021

Coaster needs a decorator that supports caching with the ETag header. A regular Flask-Cache cache decorator will save server processing time, but not bandwidth consumption for the client.

This example is a good starting point. It needs a hashing algorithm for the ETag value (Blake2b is suitable), a cache-busting mechanism to allow longer timeout periods, and support for If-None-Match and If-Match in POST requests.

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