kevinmarrec / nuxt-pwa-module

⚠️ DEPRECATED ⚠️ Zero config PWA solution for Nuxt 3
MIT License
339 stars 32 forks source link

Excluding certain files from being cached for online-offline detection #99

Open lynxionxs opened 1 year ago

lynxionxs commented 1 year ago

I want to reliably check if the pwa is online or offline. Using a small file on the production server for that. But how can i exclude only that file from being cached by the PWA?

// Example
pwa: {
  workbox: {
    enabled:true,
    exclude: [
      /ping\.txt$/,
    ]
  }
}