Skip to content

Replace pages cached without the manifest link - #402

Merged
tnkuehne merged 2 commits into
mainfrom
manifest-page-etag
Nov 25, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
manifest-page-etag

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • HTML assets that receive the manifest link now use the ETag "<hash>-manifest" instead of the uploaded file's "<hash>".
  • A browser that cached a page before Make apps installable with a web app manifest #393 sends the old ETag, gets the linked page with 200 and can install the app. Previously it received 304 and kept its copy without the link for as long as the file stayed unchanged, so redeploying an app with unchanged HTML did not make it installable for returning visitors.
  • Copies cached with the link still revalidate with 304.

Checks

  • RUN_DYNAMIC_TESTS=1 runtime suite on pinned celld (24 passed), extended with the old-ETag and new-ETag revalidation cases.
  • RUN_CLOUDFLARE_TESTS=1 runtime suite in workerd (73 passed).
  • pnpm check.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; the previous cache issue is fixed.

Summary

HTML assets use a separate ETag for pages eligible for the manifest link, so browsers replace older cached copies.

  • Manifest-linked app pages use a separate cache tag.

Reviews (2) · Last reviewed commit: "Choose the page ETag after header rules" · Reviewed by Greptile

Pages that link the web app manifest now carry an ETag that differs from
the uploaded file. A browser that cached a page before it linked the
manifest gets the linked page instead of a 304 for its old copy, so the
app becomes installable without a change to its HTML.
Comment thread packages/app-runtime/src/assets.ts Resolved
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 25, 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 successful!
View logs
widefleet-docs cbd1cae Nov 25 2026, 02:46 PM

@tnkuehne
tnkuehne merged commit 11906ab into main Nov 25, 2026
15 of 16 checks passed
@tnkuehne
tnkuehne deleted the manifest-page-etag branch November 25, 2026 14:50
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.

1 participant