[Webkit-unassigned] [Bug 217722] [Webkit 14] : Caching undefined on subsequent instantiation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 19 07:33:46 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=217722

--- Comment #11 from Corban <corbanbrook at gmail.com> ---
(In reply to katherine_cheney from comment #10)
> (In reply to Corban from comment #9)
> > Hello, thought I would add some further context to our individual setup.
> > 
> > We have a web based game (WebGL) and are using the ServiceWorker and Cache
> > Storage API to cache assets, mainly the textures and sounds used in the game.
> > 
> > This is working great in desktop and mobile in Safari and other browsers.
> > Also works great on iOS when added to home screen in PWA mode.
> > 
> > However we have an iOS native app (react-native) which adds some additional
> > functionality but mainly serves to wrap the WebGL game loaded in a webview.
> > 
> > On a fresh install of this iOS app, the service worker registers and can see
> > window.caches and correctly creates the cache, we have verified that fetched
> > files are stored in cache as well.
> > 
> > Then if you shutdown the app and reopen it window.caches is no longer
> > available.
> > 
> > If we uninstall the app and reinstall it will work again for the first load.
> > 
> > The service worker scope is at the root of the domain (ie, controls all
> > fetch requests on all pages in our webapp). We have verified that it still
> > processes fetch requests on subsequent loads, but of course no cache is
> > available so always fetches from network.
> 
> Thanks for the additional info. Do you have your required domain(s) listed
> in the app's Info.plist under WKAppBoundDomains as is outlined in
> https://webkit.org/blog/10882/app-bound-domains/?

Yes.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201019/60f5e0ce/attachment.htm>


More information about the webkit-unassigned mailing list