From 530be9155b5b8cf9ca3bdb33d60c2e9cc2f5c931 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 2 May 2019 19:49:39 -0700 Subject: [PATCH] Dont cache requests to auth APIs (#3151) --- src/entrypoints/service-worker-hass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entrypoints/service-worker-hass.js b/src/entrypoints/service-worker-hass.js index 9e0aab0e70..dc0afcf39a 100644 --- a/src/entrypoints/service-worker-hass.js +++ b/src/entrypoints/service-worker-hass.js @@ -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() );