UIWebView清除caching后应用程序退出&不caching图像脱机

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 

当我运行应用程序一旦一切运行良好和是图像caching的应用程序的生命期,但是当我closures应用程序并再次运行与WIFIclosures。 图像不会出现。 它在Android中的工作精细,但不适用于iOS应用程序。 所有标题看起来有效。

图像有7天到期。 iOS应该caching7天。

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

http://web-sniffer.net/

旧查询对于search优化:iOs Phonegap应用程序忽略caching标题和不caching图像

我们也可以通过RNCachingURLProtocol库进行离线caching。 请在线查看该库…唯一的缺点是不能清除caching。 需要validation…