Important changes to download cache behaviour:
ASIDownloadCache will now store 301, 302, 303 and 307 redirect responses in the cache. Requests pulling from the cache will automatically redirect (assuming shouldRedirect is true) as if they'd received a Location header from the server. This change should allow the download cache to operate more effectively as an offline fallback when no internet connection is available. Additionally, requests encountering a 304 will no longer read from the cache and then write back to it. Instead, they merely update the expiry date (if an updated date was supplied). As part of this work, two new required methods were added to the ASICacheDelegate protocol, see ASICacheDelegate.h for more info Finally, ASIDownloadCache now stores the response status code in a custom header in the cached headers dictionary, and requests will have their response status code set to this when they are pulled from the cache.
Showing
5 changed files
with
154 additions
and
30 deletions
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment