Customize public assets cache max-age #12745
xolott
started this conversation in
Feature Requests
Replies: 1 comment
-
This looks like a prime candidate for hacktoberfest pull request. I suggest that you create a PR where you can set it using an environment variable or something similar. What do you guys think? cc @StorytellerCZ @Grubba27 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking at the code we don't have a way to customize the max-age of the public assets. This was discussed multiple times before, but instead of forcing only
max-age=0
to everyone, I strongly believe this should be customizable.I have assets that never change (for the purpose of our project), and I want to use our CDN to cache those files. But since they always return
max-age=0
it never happens.Beta Was this translation helpful? Give feedback.
All reactions