Skip to content

feat(angular): Add service worker guide for fixing invalid file hashes in ngsw #11494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

lennybakkalian
Copy link
Contributor

File hash mismatch in ngsw.json after injecting debugIds

After injecting debugIds into the build chunks, the file hashes in ngsw.json become invalid, preventing proper caching by the service worker. This issue requires regenerating ngsw.json after the debugIds are injected to restore correct caching functionality.

getsentry/sentry-javascript#13449 (comment)

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Copy link

vercel bot commented Oct 5, 2024

@lennybakkalian is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

@lennybakkalian lennybakkalian changed the title feat: add service worker guide for fixing invalid file hashes in ngsw… feat: add service worker guide for fixing invalid file hashes in ngsw Oct 5, 2024
@Lms24 Lms24 self-requested a review October 7, 2024 09:24
Copy link

vercel bot commented Oct 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 9:45am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 9:45am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
develop-docs ⬜️ Ignored (Inspect) Visit Preview Oct 8, 2024 9:45am

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @lennybakkalian thanks again for opening this PR! The content is great, I'll just move it to the Angular specific source maps guide rather than making it appear in every JS-based guide. ngsw.json is rather Angular-specific after all :)

@Lms24 Lms24 changed the title feat: add service worker guide for fixing invalid file hashes in ngsw feat(angular): add service worker guide for fixing invalid file hashes in ngsw Oct 8, 2024
@Lms24 Lms24 changed the title feat(angular): add service worker guide for fixing invalid file hashes in ngsw feat(angular): Add service worker guide for fixing invalid file hashes in ngsw Oct 8, 2024
@Lms24 Lms24 self-assigned this Oct 8, 2024
@Lms24 Lms24 merged commit 2862313 into getsentry:master Oct 8, 2024
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2024
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.

2 participants