3.1.0
What's New?
navigateFallbackWhitelist
The navigateFallback
option, when set, causes top-level navigation requests for a URL that isn't already cached to respond with a "fallback" HTML page being returned. This works well when there are arbitrary URLs that need to map back to the same underlying App Shell HTML document, but it's a bit of a blunt tool.
For developers who need the flexibility of only mapping some URLs to the App Shell HTML document, the new navigateFallbackWhitelist
allows you to specify one or more regular expressions. Navigation requests for URLs that match at least one of those regular expressions will get the App Shell HTML document as the response, and navigation requests that don't match a cached response or one of those whitelists will be served from the network.