Title: `release.inject` gives startup chunks new file names on every commit · Issue #26485 · getsentry/sentry-javascript · GitHub
Open Graph Title: `release.inject` gives startup chunks new file names on every commit · Issue #26485 · getsentry/sentry-javascript
X Title: `release.inject` gives startup chunks new file names on every commit · Issue #26485 · getsentry/sentry-javascript
Description: Problem Statement release.inject defaults to true, and release.name defaults to the current commit. So every chunk that gets the release snippet gets a new content hash on every commit, even when its code did not change. Since #25541 thi...
Open Graph Description: Problem Statement release.inject defaults to true, and release.name defaults to the current commit. So every chunk that gets the release snippet gets a new content hash on every commit, even when i...
X Description: Problem Statement release.inject defaults to true, and release.name defaults to the current commit. So every chunk that gets the release snippet gets a new content hash on every commit, even when i...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/26485
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`release.inject` gives startup chunks new file names on every commit","articleBody":"### Problem Statement\n\n`release.inject` defaults to `true`, and `release.name` defaults to the current commit. So every chunk that gets the release snippet gets a new content hash on every commit, even when its code did not change.\n\nSince #25541 this only hits startup chunks, but those are exactly the files every returning visitor needs first. Other chunks import them by their hashed file names, so the renames spread from there.\n\nOn `@sentry/nuxt` 10.47, a deploy that changed one image renamed 140 of 147 client files. `release: { inject: false }` fixed it.\n\nThis is a very weird default. A bundler plugin should not break the bundler's content hashing unless you ask it to, and most users will never notice that every deploy throws away their users' cache.\n\n### Solution Brainstorm\n\n- Keep the release out of content-hashed files: inject it into the HTML (`transformIndexHtml` in Vite, the HTML plugin in webpack) or into one small unhashed file.\n- Or default `release.inject` to `false` when the SDK already gets the release some other way (`Sentry.init({ release })`, framework runtime config).\n- Either way, document the caching cost on `release.inject`.\n\nDebug IDs are not the problem: they come from the file content, so they don't change the hashes.\n\n### Additional Context\n\nSame problem in the old repo: https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/680 (closed, but people still hit it there).\n\nWorkaround: `release: { inject: false }`, and pass `release` to `Sentry.init` at runtime.\n","author":{"url":"https://github.com/AI091","@type":"Person","name":"AI091"},"datePublished":"2026-11-17T13:26:03Z","url":"https://github.com/getsentry/sentry-javascript/issues/26485"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8a529d72-6e40-9964-a15e-726d3ddd4c9b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4E6:1F35:993642:D5F470:6B0438EC |
| html-safe-nonce | 0af9aac2edcd4de4795f5eaa5437877c30b9e5a9ce8ef56e2bff381d87c7ce24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEU2OjFGMzU6OTkzNjQyOkQ1RjQ3MDo2QjA0MzhFQyIsInZpc2l0b3JfaWQiOiIyMjU1MTI4MDY3MjQyNzM1ODUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f239bfc5e51155d546bb30a46134e562540bf67240483fbf4ad4d82165afcb5e |
| hovercard-subject-tag | issue:6445590265 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/26485/issue_layout |
| twitter:image | https://opengraph.githubassets.com/28b9438216e81c2b19dbb0982acbd562692cf64429f5c2958af452fc51bdf507/getsentry/sentry-javascript/issues/26485 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28b9438216e81c2b19dbb0982acbd562692cf64429f5c2958af452fc51bdf507/getsentry/sentry-javascript/issues/26485 |
| og:image:alt | Problem Statement release.inject defaults to true, and release.name defaults to the current commit. So every chunk that gets the release snippet gets a new content hash on every commit, even when i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AI091 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width