Can I or can I not use caching API with service workers on IOS in either Safari or Chrome as of IOS 13.1?
I have a web app, that is to be used offline.
I use:
Works as expected.
However, on IOS (13.1+), if you try to refresh (click refresh in browser) an html file when offline, the cache does not seem to work (you get the standard page not found error). This goes for Chrome as well as Safari.
According to CanIUse, the caching API is not supported in Safari latest, which would explain the behaviour. I was not able to find information about Chrome for IOS support for cache, but I would guess it is not supported, if not in Safari.
I have found several sources that say caching API is supported in IOS Safari, so I am pretty confused.
Can I or can I not use caching API with service workers on IOS in either Safari or Chrome as of IOS 13.1?
I have deliberately not included any code examples, as the question is general and depends on whether the feature is supported in IOS Safari/Chrome or not. If it is possible to use the caching api, but I somehow implemented it wrong in code, that is for another specific post.
According to https://developer.mozilla.org/en-US/docs/Web/API/Cache#Browser_compatibility cacheapi should be supported in desktop safari not in mobile. I found this post https://webkit.org/blog/8090/workers-at-your-service/ check the bottom they are waiting for your feedback :)
And for chrome according to https://chromestatus.com/feature/6461631328419840 it suppose to work. you can find who is responsible of the cache api in chrome and file a bug from that page.
over all I should say cache api looks like not used very much. because there is not much detailed posts on the topic.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With