Skip to main content
added 3 characters in body
Source Link
Daniel Zhang
  • 5.9k
  • 2
  • 27
  • 30

How caching behaves is mostly up to you and your server. NSURLCache does not make decisions on its own other than perhaps what to do when its capacity limit is exceeded.

When you are making a request, headers like If-Modified-Since will determine if data is transferred or not by comparing the timestamps of the cached data.

Server based headers such as Cache-Control can also affect how long data remains valid in the cache.

In summary, NSURLCache can handle what you need but the implementation will be based on a combination of the configuration of NSURLCache, how you make requests, how cache control is implemented in responses and whether you override the policies given by the headers.

How caching behaves is mostly up to you and your server. NSURLCache does not make decisions on its own other than perhaps what to do when its capacity limit is exceeded.

When you are making a request, headers like If-Modified-Since will determine if data is transferred or not by comparing the timestamps of the cached data.

Server based headers such as Cache-Control can also affect how long data remains valid in the cache.

In summary, NSURLCache can handle what you need but the implementation will based on a combination of the configuration of NSURLCache, how you make requests, how cache control is implemented in responses and whether you override the policies given by the headers.

How caching behaves is mostly up to you and your server. NSURLCache does not make decisions on its own other than perhaps what to do when its capacity limit is exceeded.

When you are making a request, headers like If-Modified-Since will determine if data is transferred or not by comparing the timestamps of the cached data.

Server based headers such as Cache-Control can also affect how long data remains valid in the cache.

In summary, NSURLCache can handle what you need but the implementation will be based on a combination of the configuration of NSURLCache, how you make requests, how cache control is implemented in responses and whether you override the policies given by the headers.

added 53 characters in body; added 14 characters in body; deleted 1 character in body; deleted 2 characters in body
Source Link
Daniel Zhang
  • 5.9k
  • 2
  • 27
  • 30

How the cachecaching behaves is mostly up to you and your server. NSURLCache does not make decisions on its own other than perhaps what to do when its capacity limit is exceeded.

When you are making a request, headers like If-Modified-Since will determine if data is transferred or not by comparing the timestamps of the cached data.

Server based headers such as Cache-Control can also affect how long data remains valid in the cache.

In summary, NSURLCache can handle what you need but the implementation will based on a combination of the configuration of NSURLCache, how you make requests, how cache control is implemented in responses and whether you override the policies given by the headers.

How the cache behaves is mostly up to you and your server. NSURLCache does not make decisions on its own.

When you are making a request, headers like If-Modified-Since will determine if data is transferred or not by comparing the timestamps of the cached data.

Server based headers such as Cache-Control can also affect how long data remains valid in the cache.

In summary, NSURLCache can handle what you need but the implementation will based on a combination of the configuration of NSURLCache, how you make requests, how cache control is implemented in responses and whether you override the policies given by the headers.

How caching behaves is mostly up to you and your server. NSURLCache does not make decisions on its own other than perhaps what to do when its capacity limit is exceeded.

When you are making a request, headers like If-Modified-Since will determine if data is transferred or not by comparing the timestamps of the cached data.

Server based headers such as Cache-Control can also affect how long data remains valid in the cache.

In summary, NSURLCache can handle what you need but the implementation will based on a combination of the configuration of NSURLCache, how you make requests, how cache control is implemented in responses and whether you override the policies given by the headers.

Source Link
Daniel Zhang
  • 5.9k
  • 2
  • 27
  • 30

How the cache behaves is mostly up to you and your server. NSURLCache does not make decisions on its own.

When you are making a request, headers like If-Modified-Since will determine if data is transferred or not by comparing the timestamps of the cached data.

Server based headers such as Cache-Control can also affect how long data remains valid in the cache.

In summary, NSURLCache can handle what you need but the implementation will based on a combination of the configuration of NSURLCache, how you make requests, how cache control is implemented in responses and whether you override the policies given by the headers.