1 Reply
      Latest reply on Apr 8, 2016 12:29 PM by eskimo
      qnoid Level 1 Level 1 (0 points)

        "HTTP/1.1 specification defines a "freshness lifetime" for a response if a "Last-Modified" is present.



        > Also, if the response does have a Last-Modified time, the heuristic expiration value SHOULD be no more than some fraction of the interval since that time. A typical setting of this fraction might be 10%.

        > The calculation to determine if a response has expired is quite simple:

                    response_is_fresh = (freshness_lifetime > current_age)

        Does NSURLSession support it? If so, can the modifier, i.e. 10%, be adjusted?