Skip to content
This repository has been archived by the owner on Apr 18, 2021. It is now read-only.

RFC 7234: Prefer value from Cache-Control: s-maxage #39

Open
da2x opened this issue Mar 11, 2019 · 1 comment
Open

RFC 7234: Prefer value from Cache-Control: s-maxage #39

da2x opened this issue Mar 11, 2019 · 1 comment

Comments

@da2x
Copy link

da2x commented Mar 11, 2019

This plugin’s cache is a shared cache. It should prefer the value specified in the s-maxage (shared cache= value over the max-age (client cache), and only use the max-age as a fallback if s-maxage isn’t present.

Example (should cache for 60 seconds):

Cache-Control: max-age=900, s-maxage: 60

https://tools.ietf.org/html/rfc7234#section-4.2.1

@da2x da2x changed the title RFC 7234: Prefer Cache-Control: s-maxage RFC 7234: Prefer value from Cache-Control: s-maxage Mar 11, 2019
@nicolasazrak
Copy link
Owner

This should be implemented by https://github.com/pquerna/cachecontrol which is the library caddy-cache uses to parse headers. Can you create an issue in that repo?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants