• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 13:56:22 -0800

Hmm... you could always file a radar on that. Seems like WebKit should be able to clean up empty cache folders. It's a minor polish issue, but doesn't hurt to ask.
(And technically it's open source so you could even provide a patch and see if they integrate it!)



On Nov 8, 2006, at 1:05 PM, Andrei Tchijov wrote:

It did work almost perfect. The only "negative" effect is that ~/ Library/Caches/<my application> folder gets created. But it stays empty.

Thanks.

Andrei

On Nov 8, 2006, at 1:40 PM, Aaron Tuller wrote:

try this:

[[NSURLCache sharedURLCache] removeAllCachedResponses];
[[NSURLCache sharedURLCache] setDiskCapacity:0];

when your app starts.

-aaron



At 12:00 PM -0500 11/8/06, 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:
40olywa.net


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

_______________________________________________
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
References: 
 >Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Andrei Tchijov <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: John Stiles <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Andrei Tchijov <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Jakob Stoklund Olesen <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Andrei Tchijov <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Aaron Tuller <email@hidden>)
 >Re: Who and why creates ~/Library/Caches/<my application> and how to stop it? (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: Re: Binding Cocoa checkboxes to each other?
  • Next by Date: NSMetadataQuery with array keys
  • Previous by thread: Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?
  • Next by thread: Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?
  • Index(es):
    • Date
    • Thread