3lvis / Networking

Swift HTTP Networking with stubbing and caching support
MIT License
1.36k stars 112 forks source link

Is disable caching possible? #206

Closed dorucazan closed 6 years ago

dorucazan commented 7 years ago

Hi, I am using the library to download data that changes often on server but URL remains. Because of this I need to disable caching mechanism. Is this possible? Thanks!

3lvis commented 7 years ago

Hi @dorucazan,

We don't support that right now, it caches by default but should be simple to add. You could add a variable to Networking called "isCachingEnabled" by default the value is true, then you can check for this variable before caching

3lvis commented 6 years ago

Should be possible now!

https://github.com/3lvis/Networking/pull/227