Skip to content

Caching is not working on subsequent loads (sometimes) #924

@chrisvire

Description

@chrisvire

I have seen this issue with a recent build of the PWA: https://scriptureearth.org/data/kyu/sab/kyu/

In Firefox, it works for some number of times, but eventually it gets stuck loading I see this in the console:

Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/spinner.css’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/entry/start.ikWKY2-_.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/DAWDD5Ld.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/CG79PGug.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/entry/app.D-Qj2tRz.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/FVK9Tvzl.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/DsnmJJEf.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/V0-TBxeu.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/D7ShGbHv.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Failed to load ‘https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/DCDswsvk.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘undefined’. service-worker.js:1:14678
Uncaught (in promise) TypeError: error loading dynamically imported module: https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/entry/start.ikWKY2-_.js
    <anonymous> https://scriptureearth.org/data/kyu/sab/kyu/:32
kyu:32:7

In happens quicker in Chrome. Steps to reproduce:

  1. browse to https://www.scriptureearth.org/00eng.php?idx=257&language=Kayah,%20Western&iso_code=kyu
  2. select the first entry in the text type (Read/Listen/View - Kayah script)
10The FetchEvent for "<URL>" resulted in a network error response: the promise was rejected.Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/spinner.css" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/entry/start.ikWKY2-_.js" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/DAWDD5Ld.js" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/CG79PGug.js" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/entry/app.D-Qj2tRz.js" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/FVK9Tvzl.js" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/DsnmJJEf.js" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/V0-TBxeu.js" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/D7ShGbHv.js" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
The FetchEvent for "https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/DCDswsvk.js" resulted in a network error response: the promise was rejected.
Promise.then
(anonymous) @ service-worker.js:1Understand this warning
11service-worker.js:1 Uncaught (in promise) TypeError: Failed to convert value to 'Response'.
Promise.then
(anonymous) @ service-worker.js:1Understand this error
Navigated to https://scriptureearth.org/data/kyu/sab/kyu/
9service-worker.js:1 Uncaught (in promise) TypeError: Failed to convert value to 'Response'.
Promise.then
(anonymous) @ service-worker.js:1Understand this error
kyu/:5  GET https://scriptureearth.org/data/kyu/sab/kyu/spinner.css net::ERR_FAILEDUnderstand this error
kyu/:8  GET https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/entry/start.ikWKY2-_.js net::ERR_FAILEDUnderstand this error
kyu/:9  GET https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/DAWDD5Ld.js net::ERR_FAILEDUnderstand this error
kyu/:10  GET https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/CG79PGug.js net::ERR_FAILEDUnderstand this error
kyu/:11  GET https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/entry/app.D-Qj2tRz.js net::ERR_FAILEDUnderstand this error
kyu/:12  GET https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/FVK9Tvzl.js net::ERR_FAILEDUnderstand this error
kyu/:13  GET https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/DsnmJJEf.js net::ERR_FAILEDUnderstand this error
kyu/:14  GET https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/V0-TBxeu.js net::ERR_FAILEDUnderstand this error
kyu/:15  GET https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/D7ShGbHv.js net::ERR_FAILEDUnderstand this error
kyu/:16  GET https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/chunks/DCDswsvk.js net::ERR_FAILEDUnderstand this error
kyu/:1 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://scriptureearth.org/data/kyu/sab/kyu/_app/immutable/entry/start.ikWKY2-_.jsUnderstand this error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions