Hi, BareFeetWare
NSURLProtocol is also can be used in iOS cocoatouch, you can check
this example
http://code.google.com/p/tkawebview/downloads/detail?name=tkaurlprotocol.zip&can=2&q=
this is a open source url protocol, but still have some bug,
1. however I think you can use + requestIsCache
On Cocoa, You can intercept the WebView requests using a custom NSURLProtocol.
There is a fairly complete example here:
http://stackoverflow.com/questions/3155359/in-webkit-how-do-i-get-the-content-of-a-resource
On Jun 20, 2012, at 1:08 AM, BareFeetWare
wrote:
> Hi all,
>
> I'm trying to de
On 20/06/2012, at 5:42 PM, 尹佳冀 wrote:
>> The UIWebView sees the nil return (ie nothing cached) and so proceeds to
>> load the URL itself. So now I have two processes loading the same URL: The
>> web view and the custom caching mechanism
> In this case you return a fake data, like fakeData = [[
> On Cocoa, You can intercept the WebView requests using a custom
> NSURLProtocol. There is a fairly complete example here:
>
> http://stackoverflow.com/questions/3155359/in-webkit-how-do-i-get-the-content-of-a-resource
Hi Jason,
Thanks for your answer. Unfortunately, as you probably know, this
Hi all,
I'm trying to design a custom caching mechanism for a UIWebView. When the first
URL request is loaded, it spawns further URL requests for loading graphics. As
the user clicks links etc, it loads more URL requests.
I can use a subclass of NSURLCache to intercept requests for cached data: