Document cache-control best practice
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- documentation
Research direction
Start by reading docs/guide/static-deploy.html and the referenced Vite docs/public/_headers example. Check how the static deployment guidance currently describes hosting, then document the cache-control best practice and verify the new guidance is accurate and clear for deployers.
Written by the indexing model from the issue text.
Description
Documentation is
- Missing
- Outdated
- Confusing
- Not sure?
Explain in Detail
There is a best practice around Vite hosting:
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
- Dominant language
- TypeScript
- Stars
- 82.9k
- Forks
- 8.8k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 58
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vitejs/vite
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
pending triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
“native config loader incompatibilities” warning is shown even when setting a bundler explicitly Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100