Skip to content

fix(browser): detect shared chunks via the optimizer - #11661

Merged
sheremet-va merged 1 commit into
mainfrom
fix/browser-shared-chunk-cache
Oct 20, 2026
Merged

sheremet-va merged 1 commit into
mainfrom
fix/browser-shared-chunk-cache

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

Fixes #11652

The no-cache pin skipped shared optimizer chunks by matching chunk- in the URL. The Rolldown optimizer of Vite 8 names them [name]-[hash].js, and the esbuild optimizer also emits some chunks without the prefix. The check now uses depsOptimizer.metadata.chunks.

@netlify

netlify Bot commented Oct 20, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit 5efb749
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6ad7293a6ec64c50d7887a70
😎 Deploy Preview https://deploy-preview-11661--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sheremet-va
sheremet-va merged commit e2e9c64 into main Oct 20, 2026
@sheremet-va
sheremet-va deleted the fix/browser-shared-chunk-cache branch October 20, 2026 12:54
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

browser: shared optimizer chunks get Cache-Control: no-cache with Vite 8 (Rolldown), because the exemption matches the "chunk-" name prefix

1 participant