UIWebView中清除缓存应用程序退出与放后;没有离线缓存图像 [英] UIWebView clears cache After Application Exit & Not caching 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
当我运行应用程序一旦一切都正常运行,并有图像缓存应用程序生命时间,但是当我关闭应用程序,并关闭WIFI再次运行。图像不会出现。在Android和,但其做工精细没有在iOS的应用程序的工作。所有的头似乎有效。
When I run the application Once everything runs Fine and Yes images are cached for Application Life Time, But when I close application and Run again with WIFI off. Image do Not appear. its working FINE in android and but is not working in iOS application. All headers seem valid.
图像有7天到期。 iOS的应该缓存它7天。
The images have 7 days expiry. iOS should cache it for 7 days.
<一个href=\"http://cdn.koimoi.com/wp-content/new-galleries/2013/10/Tanisha-Mukherjeen-in-Bigg-Boss-7-Pic-1.jpg\" rel=\"nofollow\">http://cdn.koimoi.com/wp-content/new-galleries/2013/10/Tanisha-Mukherjeen-in-Bigg-Boss-7-Pic-1.jpg
OLD查询搜索优化:IOS的PhoneGap应用程序忽略缓存头,且不缓存图像
OLD QUERY For Search Optimization: iOs Phonegap application ignoring cache Headers and Not caching images
推荐答案
我们还能够通过RNCachingURLProtocol库做离线缓存。请在网上看到该库......美中不足的是它不清除缓存。需要验证...
We were also able to do the Offline caching via RNCachingURLProtocol Library. Please see online for the library...only drawback is it does not clear the cache. need to verify that...
这篇关于UIWebView中清除缓存应用程序退出与放后;没有离线缓存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!