Dont cache requests to auth APIs (#3151)

This commit is contained in:
Paulus Schoutsen 2019-05-02 19:49:39 -07:00 committed by GitHub
parent 57b917f297
commit 530be9155b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ function initRouting() {
// Get api from network.
workbox.routing.registerRoute(
new RegExp(`${location.host}/api/.*`),
new RegExp(`${location.host}/(api|auth)/.*`),
new workbox.strategies.NetworkOnly()
);