I'm trying that now but still getting unexpected results.
Even with this line of code:
[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL
cachePolicy: NSURLRequestReloadIgnoringCacheData timeoutInterval: 60]];
I get pictures that are hours old...sometimes. Sometimes the current
I also tried:
[[NSURLCache sharedURLCache] removeAllCachedResponses];
right before the loadRequest call and that didn't seem to help.
Any other ideas?
On Tuesday, July 29, 2003, at 02:57 PM, Darin Adler wrote:
> On Tuesday, July 29, 2003, at 01:05 PM, Paul FitzGerald wrote:
>> When the button is clicked I do a loadRequest with a hard coded URL
>> to my web server. The URL accesses a .jpg file that is constantly
>> updated from a web cam. Since the picture is changing I don't want
>> any caching; I want to get the current picture each time I click the
> The simplest way to make this work is to make sure your server sends
> appropriate cache controlling headers. For example, "Cache-Control:
> To prevent Foundation from using the cache, use the
> NSURLRequestReloadIgnoringCacheData cache policy on the NSURLRequest
> passed into loadRequest.
> -- Darin
webkitsdk-dev mailing list | email@hidden
Do not post admin requests to the list. They will be ignored.