Bug 181153 - Service Worker not working properly with cache.put and new Response();
Summary: Service Worker not working properly with cache.put and new Response();
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.13
: P2 Major
Assignee: Nobody
URL: https://serviceworke.rs/cache-from-zi...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-25 12:28 PST by HrVl
Modified: 2018-01-03 10:12 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HrVl 2017-12-25 12:28:34 PST
Dear all,

The service worker of this example does not work. This is a offline caching strategy commonly used for small and static websites.
The problem is that the body of the manually-generated responses saved with cache.put are empty when they are used.

https://serviceworke.rs/cache-from-zip_demo.html

Note that this works fine in Firefox and Chrome.
Thanks.
Comment 1 youenn fablet 2018-01-03 10:12:29 PST
Hi HrVI, this issue is now probably fixed in latest WebKit nightlies and will hopefully make it into next STP.
Let me know when next STP is out if that fixes this issue.