pallets / werkzeug

The comprehensive WSGI web application library.
https://werkzeug.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
6.66k stars 1.73k forks source link

Add support for RFC5861 Cache-Control headers #2949

Closed calpaterson closed 1 month ago

calpaterson commented 2 months ago

This PR adds the RFC5861 headers (stale-while-revalidate and stale-if-error) to the werkzeug ResponseCacheControl class. This is done by just adding more properties.

fixes #2948

(Haven't yet added all the right docs and so on, but will do so)