Skip to content

Commit

Permalink
Attempt to disable caching on GoatCounter script
Browse files Browse the repository at this point in the history
To fix persistent no-response errors.
  • Loading branch information
caleb531 committed Aug 3, 2024
1 parent a049e43 commit f51febf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ 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 no-response errors for GoatCounter analytics scripts
{
urlPattern: /^https:\/\/gc\.zgo\.at\//i,
handler: 'NetworkOnly'
}
],
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 f51febf

Please sign in to comment.