You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an application where I'd like to have the ability to view the RSS feed content offline but as I look into how the feed URL is pulled in, basically all caching capabilities specified by the client are wiped out.
The following definition ought not to be the default, in my opinion but should be left at the default cache policy NSURLRequestUseProtocolCachePolicy from here.
Option 1
Utilize an additional init parameter to send in the NSURLRequestCachePolicy value.
Option 2
Or possibly the NSURLRequest ought to just come in on the init method so that more of the request can be modified and the init would accept an NSMutableRequest instead of just an NSRequest.
I've got an application where I'd like to have the ability to view the RSS feed content offline but as I look into how the feed URL is pulled in, basically all caching capabilities specified by the client are wiped out.
The following definition ought not to be the default, in my opinion but should be left at the default cache policy
NSURLRequestUseProtocolCachePolicy
from here.Option 1
Utilize an additional init parameter to send in the
NSURLRequestCachePolicy
value.Option 2
Or possibly the NSURLRequest ought to just come in on the init method so that more of the request can be modified and the init would accept an
NSMutableRequest
instead of just anNSRequest
.Current Code in MWFeedParser.m
For some background on the iOS caching dilemma you might check out this article - http://blackpixel.com/blog/2012/05/caching-and-nsurlconnection.html
If either of these options sounds good, I'll go ahead and implement either one, probably Option 2 ultimately for ongoing flexibility.
The text was updated successfully, but these errors were encountered: