KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using a NSURLRequest to check for available data updates. Today I noticed, that NSURLRequest caches the request by default. Even after several hours no new request was sent to the server. Now I'm wondering what the default behavior of this cache is. When will the cached data be stale and a new request send to the server? The data is a static file and the server does not send explicit cache control headers: HTTP/1.1 200 OK Date: Fri, 13 Apr 2012 08:51:13 GMT Server: Apache Last-Modified: Thu, 12 Apr 2012 14:02:17 GMT ETag: "2852a-64-4bd7bcdba2c40" Accept-Ranges: bytes Content-Length: 100 Vary: Accept-Encoding,User-Agent Content-Type: text/plain P.S.: The new version of my app sets an explicit caching policy, so that this isn't a problem anymore, but I'm curious what the default behavior is.
Tags (comma-separated)
Save Edits
Cancel