go-vikunja/vikunja

ServiceWorker script evaluation failed.

Closed this issue · 2 comments

Description

On load, the service worker fails to register because "ServiceWorker script evaluation failed".

This was reproduced in my environment by creating a fresh install on Cloud Run, on docker.io/vikunja/vikunja:0.24.2 (currently the latest version). I'm not entirely sure why this is happening as I have no experience with service workers, but I believe this is the reason why caching doesn't work on my end.

I tried accessing the /workbox-v7.0.0/workbox-sw.js script and it doesn't return anything. But the service worker file /sw.js works.

image
The Vikunja service worker can't be loaded on the demo site.

image
A similar error happens on my own Docker deployment.

Vikunja Version

0.24.2

Browser and version

Google Chrome 128

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

I'd like to help if I can, I'll be doing some research and try if I can find a fix.

Fixed in 165ee9e, please check with the next unstable build (should be ready for deployment in ~45min, also on try).