Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I cache mp3 files using service worker? [duplicate]

Is there any restriction on what kind of files could be cached by a service worker?

like image 555
Balanarayanan Avatar asked Oct 22 '25 07:10

Balanarayanan


1 Answers

Check out https://samdutton.github.io/samples/service-worker/prefetch-video/ which works around this issue by manually created ranged responses.

Fixing this is gated on figuring out what browsers should be doing here, and updating the service worker spec if needed.

Original answer: https://stackoverflow.com/a/37614302/6773912

like image 143
Bhavik Hirani Avatar answered Oct 25 '25 19:10

Bhavik Hirani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!