Question
Can I or can I not use caching API with service workers on IOS in either Safari or Chrome as of IOS 13.1?
Background
I have a web app, that is to be used offline.
I use:
Works in Chrome on Windows/Android
Works as expected.
Does not work when offline on IOS
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.
Confusing information about caching API on IOS 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.
Question again
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.