fix: register service worker immediately and cache media requests (#1977)
author夜坂雅 <23130178+ShadowRZ@users.noreply.github.com>
Wed, 16 Oct 2024 10:26:03 +0000 (18:26 +0800)
committerGitHub <noreply@github.com>
Wed, 16 Oct 2024 10:26:03 +0000 (21:26 +1100)
commit0e51e19cab5ea616c6477b368f23fa9a1796671f
treec5107546bb80efb984777df2db20328da585dc90
parent35b0b1ea424b8b23bfee9fa9b26179da5b0da443
fix: register service worker immediately and cache media requests (#1977)

* Allow service worker to immediately claim pages
* Allow media requests to be cached by browser
src/sw.ts