I'm trying that now but still getting unexpected results.
Even with this line of code:
[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL
URLWithString:@"http://www.xxxxxxx.com/webcam/pictures0/home.jpg"]
cachePolicy: NSURLRequestReloadIgnoringCacheData timeoutInterval: 60]];
I get pictures that are hours old...sometimes. Sometimes the current
picture.
I also tried:
[[NSURLCache sharedURLCache] removeAllCachedResponses];
right before the loadRequest call and that didn't seem to help.
Any other ideas?
Paul
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
>> button.
>
> The simplest way to make this work is to make sure your server sends
> appropriate cache controlling headers. For example, "Cache-Control:
> no-cache".
>
> 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
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.