evermeer / EVURLCache

a NSURLCache subclass for handling all web requests that use NSURLRequest
Other
297 stars 49 forks source link

How to store multiple URL in cache? #53

Closed ghost closed 6 years ago

ghost commented 6 years ago

First Thank you for providing this library. I am trying to store multiple web pages in the app I tried but it replacing with old URL. can you please suggest me how I store multiple pages in the cache.

evermeer commented 6 years ago

I'm not sure what you mean with that. EVURLCache is a caching mechanism that replaces the default cache. It is automatically handled for any URLRequest that you make. Even UIWebviews use URLRequest. Just open the demo app and navigate. You can see the number of files in the cache folder increasing. Multiple domains will be there.

ghost commented 6 years ago

Thanks for your rply.. i have multiple pages in same domain just changing parametrs like www.google.com/page1 www.google.com/page2 etc EVURLCache only store last requsted web page.