Bug 198263

Summary: Can't find variable: caches
Product: WebKit Reporter: shader.yang
Component: Service WorkersAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Major    
Priority: P2    
Version: Safari 12   
Hardware: iPhone / iPad   
OS: iOS 12   
Attachments:
Description Flags
Screenshot from Safari Debugger none

shader.yang
Reported 2019-05-26 18:59:30 PDT
Created attachment 370663 [details] Screenshot from Safari Debugger I just tested if cachestorage object on iOS Safari and WKWebView, but I was told caches variable wasn't there, could you tell me is it a bug or work as design with something I don't know? I think it is a major issue, because it causes SW/CacheStorage cannot be used at all! Following is the code snippet: caches.match(url).then(function (response) { if (response) { parseResponse(response.clone(), type, cb); } else { fetchRes(url, type, cb); } }).catch(function () { console.log("get cacheStorage err by download"); }); Thanks!
Attachments
Screenshot from Safari Debugger (181.45 KB, image/png)
2019-05-26 18:59 PDT, shader.yang
no flags
shader.yang
Comment 1 2019-05-27 18:45:47 PDT
It looks because I used http instead of https, cachestorage object cannot be found via http. Via https, I can find it, I think this issue has been resolved.
Note You need to log in before you can comment on or make changes to this bug.