views:

497

answers:

2

I need UIWebView to display some local .webarchive file. But images there have same names, so UIWebView shows only one image all the time. How can I clear the cache?

Thanks in advance

A: 

Did you find any solution to this?

Vibhor Goyal
A: 

NSURLRequest* request = [NSURLRequest requestWithURL:fileURL cachePolocy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60.0];

[webView loadRequest:request];

Biranchi
I'm having the same problem here, so I tried this out, and unfortunately this doesn't work. I suspect that it's only the actual html file itself that gets loaded ignoring the cache. We need some way of making files loaded by the page itself to ignore the cache...
Ben Clayton