coaster icon indicating copy to clipboard operation
coaster copied to clipboard

ETag-based caching

Open jace opened this issue 3 years ago • 0 comments

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.

jace avatar Apr 19 '21 20:04 jace