Replies: 1 comment 1 reply
-
|
Hi! 👋🏻 While I believe this could be a nice addition, I would like to point out that in real-world applications you generally should not use your application code to manage static assets. These are usually better handled by your web server (Nginx, Traefik, Caddy, Apache, etc.) or directly by a CDN (Cloudflare, Fastly, Bunny, etc.). |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, we can only config the overall cache control max age, which applies to all static files.
However, in real world applications, we would like to set different max age for different files, according to their importance, update frequency, etc.
Beta Was this translation helpful? Give feedback.
All reactions