-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Documentation is
- Missing
- Outdated
- Confusing
- Not sure?
Explain in Detail
There is a best practice around Vite hosting:
Lines 1 to 3 in 1fe07d3
/assets/* | |
cache-control: max-age=31536000 | |
cache-control: immutable |
Your Suggestion for Changes
I believe the docs should cover it in https://vite.dev/guide/static-deploy.html.
Next.js kind of does it, but not really: https://nextjs.org/docs/app/guides/self-hosting#automatic-caching. I guess it's not in their best interest to document this (for Vercel).
Reproduction
No response
Steps to reproduce
No response
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation