Sent before the connection stores a cached response in the cache, to give the delegate an opportunity to alter it.
Original signature is '- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse'
Available in Mac OS X v10.2 with Safari 1.0 installed and later.

C# | Visual Basic | Visual C++ |
public event NSURLConnection..::..ConnectionWillCacheResponseEventHandler ConnectionWillCacheResponse
Public Event ConnectionWillCacheResponse As NSURLConnection..::..ConnectionWillCacheResponseEventHandler
public: event NSURLConnection..::..ConnectionWillCacheResponseEventHandler^ ConnectionWillCacheResponse { void add (NSURLConnection..::..ConnectionWillCacheResponseEventHandler^ value); void remove (NSURLConnection..::..ConnectionWillCacheResponseEventHandler^ value); }

The actual cached response to store in the cache. The delegate may return cachedResponse unmodified, return a modified cached response, or return nil if no cached response should be stored for the connection.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)