UIWebView清除缓存后应用程序退出&不离线缓存图像

时间:2013-10-18 09:36:35

标签: android ios caching cordova uiwebview

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

当我运行应用程序一旦所有内容都运行正常并且是的图像被缓存为应用程序生命周期,但是当我关闭应用程序并再次运行WIFI时关闭。图像不显示。它在Android中运行FINE,但在iOS应用程序中不起作用。所有标题似乎都有效。

图像有效期为7天。 iOS应该将其缓存7天。

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

http://web-sniffer.net/

OLD QUERY For Search Optimization:iOs Phonegap应用程序忽略缓存标头和不缓存图像

1 个答案:

答案 0 :(得分:0)

我们还可以通过RNCachingURLProtocol Library进行离线缓存。请在线查看库...唯一的缺点是它不能清除缓存。需要验证......

相关问题