CzBiX / qb-web

A qBittorrent Web UI, write in TypeScript+Vue.
GNU General Public License v3.0
1.71k stars 137 forks source link

[BUG] Please avoid using Service Worker #167

Closed stkevintan closed 9 months ago

stkevintan commented 10 months ago

Describe the bug

description of what the bug is, and the conditions when it occurs.

How to reproduce

Steps to reproduce the behavior:

Service worker will hugely prevent us switching webui. As a web developer, Fortunately, I know the concept and I can disable it by myself.

but how about non-developers ? or the mobile system?

As I experenced, I cannot get rid of the stale serviceworker cache in my ios browser, even I clean up all the browser history and cache

Even though I am a web developer, It still takes me nearly one day to find out why the webui doesn't change when I disable or switch the alternative webui

I feel excited with the project but feel frustrated about the service worker, I believe many people faced the same issue but they cannot find the root cause, even after totally reinstall the qbittorrent at the cost of all the data lost

Expected behavior

webui is just a small, simple , static site, it is totally enough to rely on the browser to cache resources. Please consider to remove the ServiceWorker or make can be self unregistered somehow.

Thanks!

description of what you expected to happen.

Official behavior

description of what happened in the official web ui.

Versions

Additional notes

Add any other notes about the problem here.

stkevintan commented 10 months ago

Why someone never encounter such issue ?

I guess they may host their qbittorrent webui in localhost. so the serviceworker won't take effect. It is often the case we develop the app in local, so the developer also might not be aware of it.

CzBiX commented 9 months ago

Fixed in #168, thanks.