My iOS application is downloading data from an RSS feed. I know I need to save the data.
Since, the application is having to download the data remotely -- it takes several seconds for the table view to update with the RSS data items.
I want it to only download new data if the RSS feed data has changed.
I'm setting up saving the data. But, I'm not sure how to check if the RSS feed has been updated without having to download the entire RSS feed.
Is there anyway of requesting an rss feed but only getting the pubBuildDate returned?
Meaning if the pubBuildDate is newer than last build date saved -- then I would download all of the rss feed and parse it. Otherwise, I would just load saved data.
UPDATE 1:
When I get the HTTP headers back from my request -- the status code isn't there nor is If-Modified-Since.
I've tried setting the value for If-Modified-Since and adding it to the HTTP header response but I haven't had any luck at getting this to work.
I know that if the status code is 200 then that means nothing has changed and if you get a 304 back then there is new content.
Does anyone know how to send If-Modified-Since along with a URL request?
Reference Links: http://www.feedthebot.com/ifmodified.html