httpx-caching icon indicating copy to clipboard operation
httpx-caching copied to clipboard

Support s-maxage directive

Open ekrekeler opened this issue 2 years ago • 0 comments

I noticed some trouble using httpx-caching where it wouldn't serve a cached result when the time in the "Expires" header had passed, even though s-maxage was set in Cache-Control header. CDNs use s-maxage and this should take precedence over the "max-age" directive which takes precedence over "Expires" header.

Refer to RFC 9111 Section 5.2.2.10.

ekrekeler avatar Oct 29 '22 21:10 ekrekeler