always make /web/login go through

Original commit: 011eda089abad18c89324ca4bcb6930bb682a0b9
This commit is contained in:
Morgan Bazalgette 2018-04-02 18:25:08 +02:00 committed by Haelwenn (lanodan) Monnier
parent 9c92359bc2
commit 3445b80b9e
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -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();