iOS UIWebView - Clearing Application Cache

963 views
Skip to first unread message

bmgdev

unread,
Apr 11, 2013, 4:26:12 PM4/11/13
to chromi...@chromium.org
Hi all,

I've been baffled by a problem for the past week.   In iOS Chrome, if I load a page, then "Clear Cache" from settings, then go back to that page to submit another request, it appears the cache is successfully wiped (and the 200 call is successfully made to the server, refetching page assets).  My question is, how is that done without destroying the view? 

I've had no success with any of the "standard" ways of clearing cache, including:

[[NSURLCache sharedURLCache] removeCachedResponseForRequest:NSURLRequest];
[[NSURLCache sharedURLCache] removeAllCachedResponses];

Is there anyone that can just give me a hint on how the Chrome iOS guys accomplished "Clear Cache" so that the subsequent request calls back to the server?  All caching/non-caching techniques seemed to have change in iOS6.

I'd be forever in your debt. 
-Brad

Elliott Sprehn

unread,
Apr 12, 2013, 2:13:44 AM4/12/13
to bra...@scal.io, Chromium-dev
I believe iOS Chrome uses a different network stack and doesn't go through NSURLCache.



--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
 
 
 

William Chan (陈智昌)

unread,
Apr 12, 2013, 10:58:49 AM4/12/13
to esp...@chromium.org, bra...@scal.io, Chromium-dev
Correct. iOS Chrome uses the standard Chromium network stack, which implements its own HTTP cache.
Message has been deleted

bmgdev

unread,
Apr 12, 2013, 2:24:52 PM4/12/13
to chromi...@chromium.org, esp...@chromium.org, bra...@scal.io
I'm wondering if implementing my own NSURLProtocol handler will help me in achieving what I need to do... anyone have thoughts on that?
Reply all
Reply to author
Forward
0 new messages