[X] This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
gatsby-plugin-offline does not work out of the box. Here are the two errors:
Uncaught (in promise) bad-precaching-response: bad-precaching-response
Preliminary Checks
Description
gatsby-plugin-offline
does not work out of the box. Here are the two errors:Uncaught (in promise) bad-precaching-response: bad-precaching-response
The installing service worker became redundant.
Tried modifying base on suggestion in this ticket https://github.com/gatsbyjs/gatsby/issues/36346 but it caused our build to fail.
Reproduction Link
NOTE: Errors will only be displayed in production.
https://github.com/clopez11/gatsby-starter-minimal
Steps to Reproduce
After installing the two packages, the Console has two errors.
Uncaught (in promise) bad-precaching-response: bad-precaching-response
The installing service worker became redundant.
Testing Steps:
chrome://inspect/#service-workers
and terminate all service workers, if any/manifest.webmanifest
has correct propertiesExpected Result
Pass PWA Lighthouse and no service errors
Actual Result
Service Error is not installed and an additional pre-cache error.
Environment
Config Flags
No response