next-pwa icon indicating copy to clipboard operation
next-pwa copied to clipboard

Workbox throwing console error during lighthouse analitics.

Open mpiorowski opened this issue 4 years ago • 1 comments

Summary

Workbox throwing console error during lighthouse analitics ->

Uncaught (in promise) no-response: no-response :: You can see the same problem on nuxt-pwa github: https://github.com/nuxt-community/pwa-module/issues/176

Versions

  • next-pwa: 5.2.23
  • next: 11.0.1

How To Reproduce

Set up nextjs config as follow ->

pwa: { dest: "public", runtimeCaching, disable: process.env.NODE_ENV === "development", }

Run lighthouse.

Expected Behaviors

100% score :)

Screenshots

image

If applicable, add screenshots to help explain your problem.

mpiorowski avatar Jul 08 '21 06:07 mpiorowski

May be related, I am getting Error: no-response when trying to play mp3 audio on my site with the default runtime caching.

Failed to load ‘https://abc.cloudfront.net/123.mp3’. A ServiceWorker passed a promise to FetchEvent.respondWith() that rejected with ‘Error: no-response :: [{"url":"https://abc.cloudfront.net/123.mp3"}]’.

and

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://abc.cloudfront.net/123.mp3. (Reason: CORS request did not succeed). Status code: (null)

Edit: Mine is actually only happening in Firefox. So may be a different issue.

JWesorick avatar Oct 19 '22 07:10 JWesorick