cucumber-ltd / eu Goto Github PK
View Code? Open in Web Editor NEWCaching HTTP client
License: MIT License
Caching HTTP client
License: MIT License
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?
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!
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.