Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?
Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?
- Subject: Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?
- From: John Stiles <email@hidden>
- Date: Wed, 8 Nov 2006 10:13:05 -0800
Taking it from another angleāI wonder if there is a way to ask WebKit
to clear your cache.
In that case you could keep using stringWithContentsOfURL and then
just clear your cache when the app terminates.
On Nov 8, 2006, at 9:00 AM, Andrei Tchijov wrote:
Thanks Jakob,
This is exactly what I was looking for.
Andrei
On Nov 8, 2006, at 11:47 AM, Jakob Stoklund Olesen wrote:
On 08/11/2006, at 16.50, Andrei Tchijov wrote:
[+NSURLRequest (id)requestWithURL:(NSURL *)theURL cachePolicy:
(NSURLRequestCachePolicy)cachePolicy timeoutInterval:
(NSTimeInterval)timeoutInterval ] looks promising, but none of
possible values for cachePolicy implies that data will not be
cached at all. It looks like the only thing you can control is
should or should not cache data be used to satisfy request.
Write an NSURLConnection delegate with the following method:
-(NSCachedURLResponse *)connection:(NSURLConnection *)connection
willCacheResponse:(NSCachedURLResponse *)cachedResponse
{
return nil;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden