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 a19287cafa
commit f40c8bc30a
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();