Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

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

Open
lynxionxs opened this issue Mar 4, 2023 · 0 comments
Open

Comments

@lynxionxs
Copy link

lynxionxs commented Mar 4, 2023

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$/,
    ]
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant