[Webkit-unassigned] [Bug 217722] [Webkit 14] : Caching undefined on subsequent instantiation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 16 15:07:30 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=217722
--- Comment #10 from katherine_cheney at apple.com ---
(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/?
--
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/20201016/a32bafd3/attachment.htm>
More information about the webkit-unassigned
mailing list