Add docs for Cloudflare Pages deployment#353
Open
0x62 wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for vite-plugin-pwa ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Member
|
@0x62 thx You need to add the link in the index.md in deployment folder and also the entry in the Deployment object in the |
|
Maybe add https://kit.svelte.dev/docs/adapter-cloudflare#notes and https://developers.cloudflare.com/pages/platform/headers/ as references? |
ApenasGabs
approved these changes
Jun 11, 2024
00o-sh
pushed a commit
to TheTechNetwork/it-tools
that referenced
this pull request
Dec 31, 2025
Add _headers file to configure proper MIME types and caching for PWA assets on Cloudflare Pages deployment. Key configurations: - manifest.webmanifest: Correct MIME type (application/manifest+json) - sw.js: No caching to ensure updates - workbox files: Long-term cache (immutable) - assets/: Long-term cache for hashed files - index.html: No cache to ensure freshness This fixes PWA installation issues on Cloudflare Pages where the manifest wasn't being served with the correct Content-Type header. See: vite-pwa/vite-plugin-pwa#353
00o-sh
pushed a commit
to TheTechNetwork/it-tools
that referenced
this pull request
Dec 31, 2025
Add _headers file with the exact configuration recommended by vite-plugin-pwa documentation for Cloudflare Pages deployments. Configuration: - /: No caching for root (max-age=0, s-maxage=0) - /assets/*: Long-term cache for hashed assets (immutable) - /workbox-*: Long-term cache for workbox runtime (immutable) - /manifest.webmanifest: Correct MIME type (application/manifest+json) This ensures the PWA manifest is served with the correct Content-Type header and implements proper cache strategies for PWA assets. Ref: vite-pwa/vite-plugin-pwa#353
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds deployment details for Cloudflare Pages as per Discord discussions