Allow more Cache-Control settings like s-maxage or CDN specific caches #404
MarkusWendorf
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
What about a second configuration like It should be OK to break backwards compatibility right now since the CDN integration code isn't versioned (not sure the best approach here either) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
I was thinking about setting the Cache-Control header to
max-age=86400, s-maxage=31536000
.Meaning:
However right it is only possible to set
max-age=n
viaprocess.env.CACHE_MAX_AGE
.Would it make sense to allow set the
Cache-Control
header directly? Something likeprocess.env.CACHE_CONTROL
.I would be open to implement this feature. I'm not sure if we should keep the old option and make it backwards compatible.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions