Skip to content

Fix PWA cache preventing deployment updates from loading - #4

Draft
Ari586 with Copilot wants to merge 17 commits into
gh-pagesfrom
copilot/fix-deployment-issues
Draft

Fix PWA cache preventing deployment updates from loading#4
Ari586 with Copilot wants to merge 17 commits into
gh-pagesfrom
copilot/fix-deployment-issues

Conversation

Copilot AI commented Jan 3, 2026

Copy link
Copy Markdown

Deployed updates weren't loading—users saw old cached versions instead of new code. Browser-level HTTP caching of index.html prevented the service worker from detecting updates.

Changes

Added cache control meta tags to index.html:

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">

This forces browsers to revalidate index.html on every load, allowing the Flutter service worker's update mechanism (skipWaiting + onlineFirst) to function correctly.

Original prompt

quand je deploie le code c est lancien qui ouvre pas les nouveaux mise a jours


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel

vercel Bot commented Jan 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
tantsaha Ready Ready Preview, Comment Jan 3, 2026 10:49pm
tantsaha2-0 Ready Ready Preview, Comment Jan 3, 2026 10:49pm

Co-authored-by: Ari586 <213276043+Ari586@users.noreply.github.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jan 3, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
tantsaha f1df32d Jan 03 2026, 10:50 PM

Copilot AI changed the title [WIP] Fix deployment issues with new code updates Fix PWA cache preventing deployment updates from loading Jan 3, 2026
Copilot AI requested a review from Ari586 January 3, 2026 22:50
@Ari586

Ari586 commented Jan 3, 2026

Copy link
Copy Markdown
Owner

@copilot launch de deploying in vercel for check

Copilot AI commented Jan 3, 2026

Copy link
Copy Markdown
Author

@copilot launch de deploying in vercel for check

I cannot deploy to Vercel directly as I don't have access to deployment credentials. However, the changes are ready for you to deploy.

When you deploy this to Vercel, the cache control meta tags in index.html will prevent browsers from caching the HTML file, ensuring users always get the latest version. You can verify it's working by:

  1. Deploy to Vercel
  2. Open browser DevTools (F12) → Network tab
  3. Refresh the page and check the index.html request headers
  4. You should see Cache-Control: no-cache, no-store, must-revalidate in the response headers

The changes in commit f1df32d are ready to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants