NSURLConnection leaves growing cache
NSURLConnection leaves growing cache
- Subject: NSURLConnection leaves growing cache
- From: Nicolas Berloquin <email@hidden>
- Date: Thu, 12 May 2005 17:31:37 +0200
Hello !
I use NSURLConnection's connectionWithRequest: to do some very simple
async http requests.
I've just noticed that this leaves a growing list of cache files in ~/
Library/Cache/myappname/ which
hold the request, the connexion info and the reply.
I don't understand why this happens, since I define my request this
way :
trackerRequestNSURL = [[NSMutableURLRequest
requestWithURL:tmpTrackerRequest
cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:
(NSTimeInterval)120] retain];
I then create the connexion :
currentTrackerUrlConnexion = [[NSURLConnection
connectionWithRequest:trackerRequestNSURL delegate:self] retain];
[trackerRequestNSURL release];
and then I release the connexion in my didFailWithError: and
connectionDidFinishLoading: delegate methods :
[currentTrackerUrlConnexion release];
Is there anything more that I should do ? Why is the cache created in
the first place ?
thanks !
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden