Skip to content

Commit

Permalink
Eliminate runtimeCaching spreading; note findings in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Aug 6, 2024
1 parent 014db58 commit 18b597f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ const withPWA = require('next-pwa')({
// 'SKIP_WAITING'}." (source:
// https://developers.google.com/web/tools/workbox/reference-docs/latest/module-workbox-webpack-plugin.GenerateSW#GenerateSW)
skipWaiting: false,
runtimeCaching: [
// Fix bad-precaching-response errors from service worker due to use of
// middleware (source: https://github.com/shadowwalker/next-pwa/issues/291)
...runtimeCaching
],
// Fix bad-precaching-response errors from service worker due to use of
// middleware (source: https://github.com/shadowwalker/next-pwa/issues/291);
// PLEASE NOTE that when the service worker is active, you may still see a
// no-response error fetching GoatCounter, but this appears to only occur in
// Brave and not in other browsers like Chrome
runtimeCaching,
buildExcludes: [
// This is necessary to prevent service worker errors; see
// <https://github.com/shadowwalker/next-pwa/issues/424#issuecomment-1399683017>
Expand Down

0 comments on commit 18b597f

Please sign in to comment.