UIWebView clears the cache after exiting the application and does not cache images offline

HTTP Response Header Name Value Delim Status: HTTP/1.1 200 OK Server: Apache Content-Type: image/jpeg Accept-Ranges: bytes Last-Modified: Wed, 16 Oct 2013 12:06:35 GMT Content-Length: 54556 Cache-Control: max-age=604800 Expires: Thu, 24 Oct 2013 09:32:54 GMT Date: Thu, 17 Oct 2013 09:32:54 GMT Connection: close 

When I launch the application. When everything is fine and yes, the images are cached for the lifetime of the application, but when I close the application and start again with WIFI disabled. Image is not displayed. It works FINE in android, but does not work in iOS app. All headers seem valid.

Images have a validity period of 7 days. iOS must cache it for 7 days.

http://cdn.koimoi.com/wp-content/new-galleries/2013/10/Tanisha-Mukherjeen-in-Bigg-Boss-7-Pic-1.jpg

http://web-sniffer.net/

ANCIENT REQUEST FOR Search Optimization: iO Phonegap application ignores header caching and non-image caching

+1
source share
1 answer

We were also able to perform offline caching through the RNCachingURLProtocol library. Please see online in the library ... only flaw - this does not clear the cache. it is necessary to verify that ...

0
source

Source: https://habr.com/ru/post/1500764/


All Articles