iphone - What could I do in NSURLConnection -connection:willCacheResponse:? -


The documentation says, I can:

Return value: Actual cached response cache Store in

If the cached is returned, what will be the representative if the response is absent?

Representatives can not update cash response, can return modified cached responses, or return. / Strong>

Why would I want to return a modified cached response? Example:

If you do not modify the cached response, it will be cached Response in Storage Policy and Cached Responses reaction.

For one reason you want to override it, to prevent some things from being cached, you are talking with the service in some comfort that is stored on the iPhone in a disk cache. Security provides sensitive data. You can then set a revised cached response to NSURLCacheStorageAllowedInMemory with a storage policy. Only

Are you interested in how this works or you have a problem that you think is related to caching?


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -