Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

3.1.0

Compare
Choose a tag to compare
@jeffposnick jeffposnick released this 23 Feb 20:39
· 122 commits to master since this release

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.

PRs Since Previous Release