Next-pwa: "globIgnores" is not a supported parameter

Created on 17 Jun 2020  路  4Comments  路  Source: shadowwalker/next-pwa

I'm trying to have more control over the routes and precached files. I'm using GenerateSW strategy to generate my service worker, and according to the workbox documentation, I could pass the globIgnores parameter to the generateSW class so that I could match files to always exclude when generating the precache. But I'm running into this error:

image

Most helpful comment

Makes sense, I was trying to debug everything, but it was worthless. Another question @shadowwalker , how can I have control over the precache configuration? My application is pre-caching the homepage route and it's causing weird behaviors.

For example, I have an application that it's nested inside a subLocation. Eg.: /site-builder is an application that it's running nested in /. But as you can see, it's pre-caching the route /site-builder, which leads to having an outdated version of this application sometimes.

I wonder if I could configure which routes to precache or not, but I still could not figure it out.

image

All 4 comments

Actually as I was debugging here, I found out that this seems to be an issue with the workbox-webpack-plugin itself.

It's likely things have been changed on workbox and documentation is not up to date

Makes sense, I was trying to debug everything, but it was worthless. Another question @shadowwalker , how can I have control over the precache configuration? My application is pre-caching the homepage route and it's causing weird behaviors.

For example, I have an application that it's nested inside a subLocation. Eg.: /site-builder is an application that it's running nested in /. But as you can see, it's pre-caching the route /site-builder, which leads to having an outdated version of this application sometimes.

I wonder if I could configure which routes to precache or not, but I still could not figure it out.

image

Closed with PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vishwasnavadak picture vishwasnavadak  路  8Comments

Garlink picture Garlink  路  4Comments

adammesa picture adammesa  路  8Comments

marcofranssen picture marcofranssen  路  5Comments

paales picture paales  路  3Comments