From 3445b80b9e51a9ba0e82cf6c712b17213f7bbf90 Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Mon, 2 Apr 2018 18:25:08 +0200 Subject: [PATCH] always make /web/login go through Original commit: 011eda089abad18c89324ca4bcb6930bb682a0b9 --- app/javascript/mastodon/service_worker/entry.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/mastodon/service_worker/entry.js b/app/javascript/mastodon/service_worker/entry.js index eb66f8457..9ab0bd333 100644 --- a/app/javascript/mastodon/service_worker/entry.js +++ b/app/javascript/mastodon/service_worker/entry.js @@ -28,6 +28,10 @@ self.addEventListener('fetch', function(event) { const url = new URL(event.request.url); if (url.pathname.startsWith('/web')) { + // we always make /web/login go through + if (url.pathname.startsWith('/web/login')) { + return; + } const asyncResponse = fetchRoot(); const asyncCache = openWebCache();