Giter Site home page Giter Site logo

alamofireurlcache's People

Contributors

harshitdaftary avatar kenshincui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

alamofireurlcache's Issues

Can you please explain more precisely what refreshCache does?

I tried to have a look at the code but I don't understand exactly what refreshCache does when it is set to true.
I expected it to return cache data and then call the request anyway to refresh the cache and return the response again to the UI, but it does not seem to be happening. When is the cache refreshed?

Clear Cache on Pull to Refresh

How to I clear all cached response of particular url. eg: I am calling Home API home with page no 1,2,3, and so on. Once I do pull to refresh I want to removed all cached response of page 1,2,3 an so on.

Demo里LoadingHUD的一个小建议

controller.present(alert, animated: true, completion: nil)

最好换成

controller.present(alert, animated: false, completion: nil)

如果缓存的响应立马收到,就会立即调用hide(),alertController还没present出来完全就dismiss的话会无法隐藏

Cached response does not return 304

As per the usage and requesting
Alamofire.request(url,refreshCache:false).responseJSON(completionHandler: { response in if response.value != nil { } else { } }).cache(maxAge: 10)

If we check the statusCode of the response it does not return 304

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.