Skip to content

fix(core): evict the bundler persistent cache when the target browsers, the server Node.js target or plugin versions change (AI-assisted) - #12774

Merged
slorber merged 1 commit into
mainfrom
claude/getcacheversion-cache-eviction-e83320
Oct 23, 2026
Merged

slorber merged 1 commit into
mainfrom
claude/getcacheversion-cache-eviction-e83320

Conversation

@slorber

@slorber slorber commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Webpack and Rspack key their persistent cache entries by the rule position of a loader, not by its option values. When a loader option changes without a build dependency file changing, the bundler reuses stale output. getCacheVersion() must include what the loader options are computed from.

Builds on #12778, which separates the client queries from the client and server targets.

This PR follows #12727, which added the client Browserslist queries to the cache version:

  • Resolved client browsers: the cache version now hashes the browsers that the queries match, instead of the query strings. The same queries (like the default baseline widely available) can match other browsers over time or after a Browserslist data upgrade. Rewriting a query that matches the same browsers no longer evicts the cache.
  • Server Node.js target: the server cache version now uses the server targets the SWC loader receives (the current Node.js version, or DOCUSAURUS_SERVER_NODE_TARGET). Switching Node.js versions used to reuse server modules compiled for the previous one. The server cache no longer depends on the client Browserslist config, which neither SWC nor Babel uses for server code. These targets aren't Browserslist queries, so they're hashed as they are: Browserslist doesn't know all the Node.js patch releases they can contain.
  • Plugin versions: upgrading a third-party plugin can change the loader options it computes in configureWebpack() or configurePostCss() without changing any build dependency. The cache version now includes siteMetadata.pluginVersions. The site's own package.json version is left out.

All the values are now hashed together, as a single array.

@docusaurus/bundler exports a new getTargets({isServer, bundlerName}), returning the client or server targets. Core no longer uses the getClientQueries export, but I kept it because entry point exports are public API.

Test Plan

Unit tests in base.test.ts. The cache version:

  • changes when the Browserslist queries match other browsers
  • doesn't change when other queries match the same browsers
  • changes when the server Node.js target changes, including between patch releases Browserslist doesn't know
  • changes when a plugin package version changes
  • doesn't change when the site version changes

With the previous getCacheVersion(), 3 of these tests fail.

The time drift of queries like baseline widely available isn't tested: Browserslist caches query results within a process, so a test can't fake the date.

Test links

Deploy preview: https://deploy-preview-12774--docusaurus-2.netlify.app/

Related issues/PRs

🤖 Generated with Claude Code

@slorber
slorber requested a review from Josh-Cena as a code owner October 23, 2026 16:52
@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Oct 23, 2026
@meta-cla meta-cla Bot added the CLA Signed Signed Facebook CLA label Oct 23, 2026
@netlify

netlify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

✅ [V2]

Name Link
🔨 Latest commit 56ded34
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/6adba14c0e91787a63742a59
😎 Deploy Preview https://deploy-preview-12774--docusaurus-2.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.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 900e64bd-befb-4fd1-8c20-67b2923cee50
📥 Commits

Reviewing files that changed from the base of the PR and between 31bd2b8 and bebc8aa.

📒 Files selected for processing: 3
  • packages/docusaurus-bundler/src/browserslist.ts
  • packages/docusaurus-bundler/src/index.ts
  • packages/docusaurus/src/webpack/base.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The bundler now exports target resolution for client and server builds. Webpack includes those targets and plugin versions in its cache-version hash. Tests cover changes to browser queries, server targets, plugin versions, and site versions.

Changes: Cache Versioning

Layer / File(s) Summary
Target resolution
packages/docusaurus-bundler/src/browserslist.ts, packages/docusaurus-bundler/src/index.ts
The bundler exports getTargets, which returns client or server targets based on the build mode.
Cache key inputs and validation
packages/docusaurus/src/webpack/base.ts, packages/docusaurus/src/webpack/__tests__/base.test.ts
Webpack hashes targets for the current build, plugin versions, and existing inputs. Tests cover changed and equivalent browser queries, server targets, plugin versions, and site versions.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: ⚪ Minimal · up to bebc8

No actionable cache-version defect is established. The change is ready to merge after normal checks.

Architecture risk: 🟡 Medium · up to bebc8

The change affects 2 systems.

Changed systems: packages/docusaurus-bundler, packages/docusaurus

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — packages/docusaurus-bundler (library) was modified; 2 changed files map to changed impact.
  • observed — packages/docusaurus (library) was modified; 2 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in packages/docusaurus/src/webpack/tests/base.test.ts: The type-only import now includes SiteMetadata.
  • observed — Modified behavior in packages/docusaurus/src/webpack/tests/base.test.ts: The shared test fixture adds an empty pluginVersions object to siteMetadata.
  • observed — Modified behavior in packages/docusaurus/src/webpack/tests/base.test.ts: getCacheVersion now accepts optional isServer and siteMetadata values, defaulting to client mode and the fixture metadata, and passes them into base-config creation instead of always creating a client config.
  • observed — Modified behavior in packages/docusaurus/src/webpack/tests/base.test.ts: Adds helpers to stub the Browserslist query and server Node.js target environment variables, and to create site metadata with optional site and plugin versions.

Reliability and maintainability

  • inferred — Risk-relevant change factors for packages/docusaurus-bundler: blast_radius_1; direct_dependents_1
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 27.27% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 5 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the main change: invalidating persistent bundler cache entries when browser targets, server Node.js targets, or plugin versions change.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 12.1 MB

ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/codeTranslations.json 2 B 0 B
website/.docusaurus/docusaurus.config.mjs 28.5 kB 0 B
website/.docusaurus/globalData.json 38.2 kB 0 B
website/.docusaurus/i18n.json 1.36 kB 0 B
website/.docusaurus/registry.js 179 kB 0 B
website/.docusaurus/routes.js 88.8 kB 0 B
website/.docusaurus/routesChunkNames.json 93.9 kB 0 B
website/.docusaurus/site-metadata.json 2.59 kB 0 B
website/build/assets/css/styles.**********.css 145 kB 0 B
website/build/assets/js/main.**********.js 757 kB 0 B
website/build/assets/js/runtime~main.**********.js 41.8 kB 0 B
website/build/blog.html 79.2 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus.html 67.5 kB +1 B (0%)
website/build/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus.html 46.5 kB +1 B (0%)
website/build/blog/2018/09/11/Towards-Docusaurus-2.html 51 kB +6 B (+0.01%)
website/build/blog/2018/12/14/Happy-First-Birthday-Slash.html 30.5 kB +1 B (0%)
website/build/blog/2019/12/30/docusaurus-2019-recap.html 41.6 kB +1 B (0%)
website/build/blog/2020/01/07/tribute-to-endi.html 34 kB +1 B (0%)
website/build/blog/2021/01/19/docusaurus-2020-recap.html 53.1 kB +1 B (0%)
website/build/blog/2021/03/09/releasing-docusaurus-i18n.html 49 kB +1 B (0%)
website/build/blog/2021/05/12/announcing-docusaurus-two-beta.html 49.6 kB +1 B (0%)
website/build/blog/2021/11/21/algolia-docsearch-migration.html 56 kB +1 B (0%)
website/build/blog/2022/01/24/docusaurus-2021-recap.html 44.7 kB +1 B (0%)
website/build/blog/2022/08/01/announcing-docusaurus-2.0.html 137 kB +1 B (0%)
website/build/blog/2022/09/01/docusaurus-2.1.html 52.1 kB +1 B (0%)
website/build/blog/archive.html 24.8 kB 0 B
website/build/blog/authors.html 52.1 kB 0 B
website/build/blog/authors/j-marcey.html 72.3 kB 0 B
website/build/blog/authors/josh-cena.html 48.5 kB 0 B
website/build/blog/authors/lex-111.html 57.4 kB 0 B
website/build/blog/authors/slorber.html 83.1 kB 0 B
website/build/blog/authors/slorber/page/2.html 82.3 kB 0 B
website/build/blog/authors/slorber/page/3.html 85.9 kB 0 B
website/build/blog/authors/slorber/page/4.html 98.6 kB 0 B
website/build/blog/authors/slorber/page/5.html 55 kB 0 B
website/build/blog/authors/yangshun.html 68.2 kB 0 B
website/build/blog/authors/zpao.html 49 kB 0 B
website/build/blog/page/2.html 78.4 kB 0 B
website/build/blog/page/3.html 82.8 kB 0 B
website/build/blog/page/4.html 87.3 kB 0 B
website/build/blog/page/5.html 74.7 kB 0 B
website/build/blog/page/6.html 42.1 kB 0 B
website/build/blog/preparing-your-site-for-docusaurus-v3.html 130 kB +1 B (0%)
website/build/blog/releases/2.2.html 52.2 kB +1 B (0%)
website/build/blog/releases/2.3.html 62.8 kB 0 B
website/build/blog/releases/2.4.html 66.7 kB +1 B (0%)
website/build/blog/releases/3.0.html 109 kB +1 B (0%)
website/build/blog/releases/3.1.html 54.9 kB +1 B (0%)
website/build/blog/releases/3.2.html 50.7 kB +1 B (0%)
website/build/blog/releases/3.3.html 58 kB +1 B (0%)
website/build/blog/releases/3.4.html 57.2 kB 0 B
website/build/blog/releases/3.5.html 59.9 kB +1 B (0%)
website/build/blog/releases/3.6.html 77.1 kB 0 B
website/build/blog/releases/3.7.html 52.6 kB +1 B (0%)
website/build/blog/releases/3.8.html 88.4 kB 0 B
website/build/blog/releases/3.9.html 62.7 kB +1 B (0%)
website/build/blog/releases/3.10.html 93.5 kB +1 B (0%)
website/build/blog/tags.html 28.7 kB 0 B
website/build/blog/upgrading-frontend-dependencies-with-confidence-using-visual-regression-testing.html 127 kB +1 B (0%)
website/build/docs.html 50.5 kB 0 B
website/build/docs/advanced.html 31.7 kB 0 B
website/build/docs/advanced/architecture.html 30.3 kB +4 B (+0.01%)
website/build/docs/advanced/client.html 71.7 kB 0 B
website/build/docs/advanced/plugins.html 55.6 kB +1 B (0%)
website/build/docs/advanced/routing.html 70.9 kB +1 B (0%)
website/build/docs/advanced/ssg.html 75.5 kB +1 B (0%)
website/build/docs/api/docusaurus-config.html 237 kB 0 B
website/build/docs/api/misc/@docusaurus/eslint-plugin.html 51.6 kB 0 B
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-html-links.html 36.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-untranslated-text.html 35.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/prefer-docusaurus-heading.html 37.1 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/string-literal-i18n-messages.html 40.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/logger.html 39.2 kB +1 B (0%)
website/build/docs/api/misc/create-docusaurus.html 38.4 kB +8 B (+0.02%)
website/build/docs/api/misc/docusaurus-init/index.html 361 B 0 B
website/build/docs/api/plugin-methods.html 61.9 kB 0 B
website/build/docs/api/plugin-methods/extend-infrastructure.html 75.9 kB 0 B
website/build/docs/api/plugin-methods/i18n-lifecycles.html 58.2 kB +1 B (0%)
website/build/docs/api/plugin-methods/lifecycle-apis.html 163 kB 0 B
website/build/docs/api/plugin-methods/static-methods.html 45.2 kB +1 B (0%)
website/build/docs/api/plugins.html 32.6 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-client-redirects.html 60.2 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-content-blog.html 185 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-content-docs.html 192 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-content-pages.html 75.2 kB +6 B (+0.01%)
website/build/docs/api/plugins/@docusaurus/plugin-css-cascade-layers.html 58.1 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-debug.html 48.5 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-google-gtag.html 48.3 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-google-tag-manager.html 48.2 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-ideal-image.html 57.9 kB +4 B (+0.01%)
website/build/docs/api/plugins/@docusaurus/plugin-pwa.html 118 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-rsdoctor.html 41.5 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-sitemap.html 91.2 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-svgr.html 57.5 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-vercel-analytics.html 41.2 kB +1 B (0%)
website/build/docs/api/themes.html 30.2 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-classic.html 44.1 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-live-codeblock.html 37.1 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-mermaid.html 35.9 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-search-algolia.html 33.6 kB 0 B
website/build/docs/api/themes/configuration.html 254 kB 0 B
website/build/docs/blog.html 201 kB 0 B
website/build/docs/browser-support.html 47.3 kB 0 B
website/build/docs/category/getting-started.html 28.5 kB 0 B
website/build/docs/category/guides.html 39 kB 0 B
website/build/docs/category/miscellaneous.html 28.3 kB 0 B
website/build/docs/cli.html 67.4 kB 0 B
website/build/docs/configuration.html 93.8 kB +1 B (0%)
website/build/docs/create-doc.html 62.3 kB +1 B (0%)
website/build/docs/creating-pages.html 57.7 kB +1 B (0%)
website/build/docs/deployment.html 67.5 kB 0 B
website/build/docs/deployment/github-pages.html 120 kB 0 B
website/build/docs/deployment/netlify.html 39.3 kB 0 B
website/build/docs/deployment/vercel.html 33.3 kB 0 B
website/build/docs/docs-introduction.html 50.7 kB 0 B
website/build/docs/docs-multi-instance.html 74.8 kB +1 B (0%)
website/build/docs/docusaurus-core.html 227 kB 0 B
website/build/docs/guides/whats-next.html 33.3 kB 0 B
website/build/docs/i18n/crowdin.html 148 kB 0 B
website/build/docs/i18n/git.html 81.1 kB +8 B (+0.01%)
website/build/docs/i18n/introduction.html 49.9 kB 0 B
website/build/docs/i18n/tutorial.html 170 kB 0 B
website/build/docs/installation.html 71.5 kB 0 B
website/build/docs/introduction/index.html 280 B 0 B
website/build/docs/markdown-features.html 85.7 kB 0 B
website/build/docs/markdown-features/admonitions.html 118 kB +1 B (0%)
website/build/docs/markdown-features/assets.html 93.6 kB 0 B
website/build/docs/markdown-features/code-blocks.html 223 kB 0 B
website/build/docs/markdown-features/diagrams.html 61.9 kB 0 B
website/build/docs/markdown-features/head-metadata.html 51.6 kB +1 B (0%)
website/build/docs/markdown-features/links.html 41.4 kB +6 B (+0.01%)
website/build/docs/markdown-features/math-equations.html 92.8 kB 0 B
website/build/docs/markdown-features/plugins.html 96.8 kB +1 B (0%)
website/build/docs/markdown-features/react.html 131 kB 0 B
website/build/docs/markdown-features/tabs.html 141 kB 0 B
website/build/docs/markdown-features/toc.html 88.1 kB 0 B
website/build/docs/migration.html 39.3 kB +1 B (0%)
website/build/docs/migration/v3.html 192 kB 0 B
website/build/docs/playground.html 32 kB 0 B
website/build/docs/resources/index.html 325 B 0 B
website/build/docs/search.html 125 kB +1 B (0%)
website/build/docs/seo.html 89.1 kB 0 B
website/build/docs/sidebar.html 137 kB 0 B
website/build/docs/sidebar/autogenerated.html 148 kB +1 B (0%)
website/build/docs/sidebar/items.html 176 kB +1 B (0%)
website/build/docs/sidebar/multiple-sidebars.html 62.8 kB +1 B (0%)
website/build/docs/static-assets.html 55.1 kB 0 B
website/build/docs/styling-layout.html 140 kB 0 B
website/build/docs/support/index.html 319 B 0 B
website/build/docs/swizzling.html 113 kB 0 B
website/build/docs/team/index.html 310 B 0 B
website/build/docs/typescript-support.html 67.3 kB 0 B
website/build/docs/using-plugins.html 107 kB 0 B
website/build/docs/versioning.html 93.3 kB 0 B
website/build/index.html 37.1 kB 0 B

compressed-size-action::DOCUSAURUS_INFRA_FASTER

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 12.1 MB

ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/codeTranslations.json 2 B 0 B
website/.docusaurus/docusaurus.config.mjs 28.5 kB 0 B
website/.docusaurus/globalData.json 38.2 kB 0 B
website/.docusaurus/i18n.json 1.36 kB 0 B
website/.docusaurus/registry.js 179 kB 0 B
website/.docusaurus/routes.js 88.8 kB 0 B
website/.docusaurus/routesChunkNames.json 93.9 kB 0 B
website/.docusaurus/site-metadata.json 2.59 kB 0 B
website/build/assets/css/styles.**********.css 145 kB 0 B
website/build/assets/js/main.**********.js 755 kB 0 B
website/build/assets/js/runtime~main.**********.js 41.6 kB 0 B
website/build/blog.html 79.2 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus.html 67.5 kB +1 B (0%)
website/build/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus.html 46.5 kB +1 B (0%)
website/build/blog/2018/09/11/Towards-Docusaurus-2.html 51 kB +6 B (+0.01%)
website/build/blog/2018/12/14/Happy-First-Birthday-Slash.html 30.5 kB +1 B (0%)
website/build/blog/2019/12/30/docusaurus-2019-recap.html 41.6 kB +1 B (0%)
website/build/blog/2020/01/07/tribute-to-endi.html 34 kB +1 B (0%)
website/build/blog/2021/01/19/docusaurus-2020-recap.html 53.1 kB +1 B (0%)
website/build/blog/2021/03/09/releasing-docusaurus-i18n.html 49 kB +1 B (0%)
website/build/blog/2021/05/12/announcing-docusaurus-two-beta.html 49.6 kB +1 B (0%)
website/build/blog/2021/11/21/algolia-docsearch-migration.html 56 kB +1 B (0%)
website/build/blog/2022/01/24/docusaurus-2021-recap.html 44.7 kB +1 B (0%)
website/build/blog/2022/08/01/announcing-docusaurus-2.0.html 137 kB +1 B (0%)
website/build/blog/2022/09/01/docusaurus-2.1.html 52.1 kB +1 B (0%)
website/build/blog/archive.html 24.8 kB 0 B
website/build/blog/authors.html 52.1 kB 0 B
website/build/blog/authors/j-marcey.html 72.3 kB 0 B
website/build/blog/authors/josh-cena.html 48.5 kB 0 B
website/build/blog/authors/lex-111.html 57.4 kB 0 B
website/build/blog/authors/slorber.html 83.1 kB 0 B
website/build/blog/authors/slorber/page/2.html 82.3 kB 0 B
website/build/blog/authors/slorber/page/3.html 85.9 kB 0 B
website/build/blog/authors/slorber/page/4.html 98.6 kB 0 B
website/build/blog/authors/slorber/page/5.html 55 kB 0 B
website/build/blog/authors/yangshun.html 68.2 kB 0 B
website/build/blog/authors/zpao.html 49 kB 0 B
website/build/blog/page/2.html 78.4 kB 0 B
website/build/blog/page/3.html 82.8 kB 0 B
website/build/blog/page/4.html 87.3 kB 0 B
website/build/blog/page/5.html 74.7 kB 0 B
website/build/blog/page/6.html 42.1 kB 0 B
website/build/blog/preparing-your-site-for-docusaurus-v3.html 130 kB +1 B (0%)
website/build/blog/releases/2.2.html 52.2 kB +1 B (0%)
website/build/blog/releases/2.3.html 62.8 kB 0 B
website/build/blog/releases/2.4.html 66.7 kB +1 B (0%)
website/build/blog/releases/3.0.html 109 kB +1 B (0%)
website/build/blog/releases/3.1.html 54.9 kB +1 B (0%)
website/build/blog/releases/3.2.html 50.7 kB +1 B (0%)
website/build/blog/releases/3.3.html 58 kB +1 B (0%)
website/build/blog/releases/3.4.html 57.2 kB 0 B
website/build/blog/releases/3.5.html 59.9 kB +1 B (0%)
website/build/blog/releases/3.6.html 77.1 kB 0 B
website/build/blog/releases/3.7.html 52.6 kB +1 B (0%)
website/build/blog/releases/3.8.html 88.4 kB 0 B
website/build/blog/releases/3.9.html 62.7 kB +1 B (0%)
website/build/blog/releases/3.10.html 93.5 kB +1 B (0%)
website/build/blog/tags.html 28.7 kB 0 B
website/build/blog/upgrading-frontend-dependencies-with-confidence-using-visual-regression-testing.html 127 kB +1 B (0%)
website/build/docs.html 50.5 kB 0 B
website/build/docs/advanced.html 31.7 kB 0 B
website/build/docs/advanced/architecture.html 30.3 kB +4 B (+0.01%)
website/build/docs/advanced/client.html 71.7 kB 0 B
website/build/docs/advanced/plugins.html 55.6 kB +1 B (0%)
website/build/docs/advanced/routing.html 70.9 kB +1 B (0%)
website/build/docs/advanced/ssg.html 75.5 kB +1 B (0%)
website/build/docs/api/docusaurus-config.html 237 kB 0 B
website/build/docs/api/misc/@docusaurus/eslint-plugin.html 51.6 kB 0 B
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-html-links.html 36.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-untranslated-text.html 35.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/prefer-docusaurus-heading.html 37.1 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/string-literal-i18n-messages.html 40.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/logger.html 39.2 kB +1 B (0%)
website/build/docs/api/misc/create-docusaurus.html 38.4 kB +8 B (+0.02%)
website/build/docs/api/misc/docusaurus-init/index.html 361 B 0 B
website/build/docs/api/plugin-methods.html 61.9 kB 0 B
website/build/docs/api/plugin-methods/extend-infrastructure.html 75.9 kB 0 B
website/build/docs/api/plugin-methods/i18n-lifecycles.html 58.2 kB +1 B (0%)
website/build/docs/api/plugin-methods/lifecycle-apis.html 163 kB 0 B
website/build/docs/api/plugin-methods/static-methods.html 45.2 kB +1 B (0%)
website/build/docs/api/plugins.html 32.6 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-client-redirects.html 60.2 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-content-blog.html 185 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-content-docs.html 192 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-content-pages.html 75.2 kB +6 B (+0.01%)
website/build/docs/api/plugins/@docusaurus/plugin-css-cascade-layers.html 58.1 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-debug.html 48.5 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-google-gtag.html 48.3 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-google-tag-manager.html 48.2 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-ideal-image.html 57.9 kB +4 B (+0.01%)
website/build/docs/api/plugins/@docusaurus/plugin-pwa.html 118 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-rsdoctor.html 41.5 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-sitemap.html 91.2 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-svgr.html 57.5 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-vercel-analytics.html 41.2 kB +1 B (0%)
website/build/docs/api/themes.html 30.2 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-classic.html 44.1 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-live-codeblock.html 37.1 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-mermaid.html 35.9 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-search-algolia.html 33.6 kB 0 B
website/build/docs/api/themes/configuration.html 254 kB 0 B
website/build/docs/blog.html 201 kB 0 B
website/build/docs/browser-support.html 47.3 kB 0 B
website/build/docs/category/getting-started.html 28.5 kB 0 B
website/build/docs/category/guides.html 39 kB 0 B
website/build/docs/category/miscellaneous.html 28.3 kB 0 B
website/build/docs/cli.html 67.4 kB 0 B
website/build/docs/configuration.html 93.8 kB +1 B (0%)
website/build/docs/create-doc.html 62.3 kB +1 B (0%)
website/build/docs/creating-pages.html 57.7 kB +1 B (0%)
website/build/docs/deployment.html 67.5 kB 0 B
website/build/docs/deployment/github-pages.html 120 kB 0 B
website/build/docs/deployment/netlify.html 39.3 kB 0 B
website/build/docs/deployment/vercel.html 33.3 kB 0 B
website/build/docs/docs-introduction.html 50.7 kB 0 B
website/build/docs/docs-multi-instance.html 74.8 kB +1 B (0%)
website/build/docs/docusaurus-core.html 227 kB 0 B
website/build/docs/guides/whats-next.html 33.3 kB 0 B
website/build/docs/i18n/crowdin.html 148 kB 0 B
website/build/docs/i18n/git.html 81.1 kB +8 B (+0.01%)
website/build/docs/i18n/introduction.html 49.9 kB 0 B
website/build/docs/i18n/tutorial.html 170 kB 0 B
website/build/docs/installation.html 71.5 kB 0 B
website/build/docs/introduction/index.html 280 B 0 B
website/build/docs/markdown-features.html 85.7 kB 0 B
website/build/docs/markdown-features/admonitions.html 118 kB +1 B (0%)
website/build/docs/markdown-features/assets.html 93.6 kB 0 B
website/build/docs/markdown-features/code-blocks.html 223 kB 0 B
website/build/docs/markdown-features/diagrams.html 61.9 kB 0 B
website/build/docs/markdown-features/head-metadata.html 51.6 kB +1 B (0%)
website/build/docs/markdown-features/links.html 41.4 kB +6 B (+0.01%)
website/build/docs/markdown-features/math-equations.html 92.8 kB 0 B
website/build/docs/markdown-features/plugins.html 96.8 kB +1 B (0%)
website/build/docs/markdown-features/react.html 131 kB 0 B
website/build/docs/markdown-features/tabs.html 141 kB 0 B
website/build/docs/markdown-features/toc.html 88.1 kB 0 B
website/build/docs/migration.html 39.3 kB +1 B (0%)
website/build/docs/migration/v3.html 192 kB 0 B
website/build/docs/playground.html 32 kB 0 B
website/build/docs/resources/index.html 325 B 0 B
website/build/docs/search.html 125 kB +1 B (0%)
website/build/docs/seo.html 89.1 kB 0 B
website/build/docs/sidebar.html 137 kB 0 B
website/build/docs/sidebar/autogenerated.html 148 kB +1 B (0%)
website/build/docs/sidebar/items.html 176 kB +1 B (0%)
website/build/docs/sidebar/multiple-sidebars.html 62.8 kB +1 B (0%)
website/build/docs/static-assets.html 55.1 kB 0 B
website/build/docs/styling-layout.html 140 kB 0 B
website/build/docs/support/index.html 319 B 0 B
website/build/docs/swizzling.html 113 kB 0 B
website/build/docs/team/index.html 310 B 0 B
website/build/docs/typescript-support.html 67.3 kB 0 B
website/build/docs/using-plugins.html 107 kB 0 B
website/build/docs/versioning.html 93.3 kB 0 B
website/build/index.html 37.1 kB 0 B

compressed-size-action::DOCUSAURUS_INFRA_SLOWER

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO Report
/ 🟠 59 🟢 98 🟢 100 🟢 100 Report
/docs/installation 🟠 51 🟢 97 🟢 100 🟢 100 Report
/docs/category/getting-started 🟠 70 🟢 100 🟢 100 🟠 86 Report
/blog 🟠 69 🟢 96 🟢 100 🟠 86 Report
/blog/preparing-your-site-for-docusaurus-v3 🟠 68 🟢 92 🟢 100 🟢 100 Report
/blog/tags/release 🟠 70 🟢 96 🟢 100 🟠 86 Report
/blog/tags 🟠 71 🟢 100 🟢 100 🟠 86 Report

@slorber
slorber changed the base branch from main to claude/bundler-get-targets October 23, 2026 17:34
@slorber
slorber force-pushed the claude/getcacheversion-cache-eviction-e83320 branch from 9768480 to 31bd2b8 Compare October 23, 2026 17:34
@slorber
slorber added this pull request to stack #12779 October 23, 2026 17:34
@slorber
slorber force-pushed the claude/getcacheversion-cache-eviction-e83320 branch from 31bd2b8 to bebc8aa Compare October 23, 2026 17:46
Base automatically changed from claude/bundler-get-targets to main October 23, 2026 18:02
…s, the server Node.js target or plugin versions change (AI-assisted)

The persistent cache doesn't track loader options, so getCacheVersion()
must include what they're computed from:

- The targets from the new getTargets(): the browsers the client queries
  match, instead of the queries. The same queries (like "baseline widely
  available") can match other browsers over time or after a Browserslist
  data upgrade. For the server cache, the server targets (current Node.js
  version or DOCUSAURUS_SERVER_NODE_TARGET).
- The plugin versions: upgrading a third-party plugin can change the
  loader options it computes without changing any build dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@slorber
slorber force-pushed the claude/getcacheversion-cache-eviction-e83320 branch from bebc8aa to 56ded34 Compare October 23, 2026 18:02
@slorber
slorber merged commit 6d54337 into main Oct 23, 2026
40 checks passed
@slorber
slorber deleted the claude/getcacheversion-cache-eviction-e83320 branch October 23, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant