ios - Downloading file conditionally with timestamp, like curl -z -
i'm looking equivalent of curl -z some_date some_url using nsurlrequest of afnetworking. want download file url according it's timestamp on server.
(or curl -z local.file remote.file, automatically downloads remote.file if last modified later local.file was)
any ideas?
afnetworking uses nsurlrequest make requests; behavior same regardless of choose.
set nsurlrequest's cachepolicy
property nsurlrequestuseprotocolcachepolicy
, behavior done according cache-control headers sent down server. in cases, adding if-modified-since
header request.
Comments
Post a Comment