Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Caching Support #9

Open
osuritz opened this issue Jul 20, 2011 · 2 comments
Open

Caching Support #9

osuritz opened this issue Jul 20, 2011 · 2 comments

Comments

@osuritz
Copy link

osuritz commented Jul 20, 2011

I couldn't find any documentation with regards to caching support. Is that provided by the underlying HTTP connection mechanism or is there no caching support at the moment?

@lukeredpath
Copy link
Owner

Hi there, caching is one area where LRResty is lacking at the moment but I'm definitely interested in improving it.

Initially I could do more to use the underlying NSURLConnection caching but I'd like to do some smarter stuff with etags and if-modified-since in the future.

@kluivers
Copy link

iOS already contains a caching functionality for NSURLRequests, but doesn't write this cache to disk. So every app restart the cache is gone. I've been using a subclass of the NSURLCache that will actually persist to disk. This will make sure responses for NSURLRequests are persisted to disk if requested using NSURLRequest + requestWithURL:cachePolicy:timeoutInterval:.

Maybe an idea to integrate something like this in LRResty? See:
https://github.com/rs/SDURLCache

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants