Code Monkey home page Code Monkey logo

eu's People

Contributors

aslakhellesoy avatar jarib avatar kevinswiber avatar mattwynne avatar rwaldin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eu's Issues

New cache store released: eu-medea-store

I'm not sure if you're tracking new cache stores anywhere, so this might just be a quick FYI.

I've been maintaining a pure JavaScript persistent key-value storage library named Medea.

I built the eu-medea-store module to marry Eu with Medea.

So... if you need a legit (not in-memory) cache store that is persistent, requires no native modules, and runs in-process.... here you go!

Extend previous cache expiry on 304 response?

Atm previously cached reponses gets returned if the server responds with 304, great ๐Ÿ‘ Although as the cached response expiry isnt extended, all subsequent requests will still perform requests against the server.

Any thoughts on extending the cachedResponse.expiryTimeMillis on 304 responses, increasing the possibility of hitting the cache immediately instead of requesting the server?

Cache 302 responses?

According to the HTTP spec, a 302 response is

cacheable if indicated by a Cache-Control or Expires header field.

Even if we changed the logic in eu, request() won't emit 302 responses unless it's passed {followRedirect: false}

Can we make eu cache 302 responses without users having to implement redirection themselves? What would be the best approach?

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.