We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I'm trying to use this module to proxy and cache some images coming from external services. It works when I don't set the cache option.
cache
exports.proxy = function(req, res, next) { if (!req.headers['referer']) return res.status(400).send(); var ref_parts = url.parse(req.headers['referer'], true); if (ref_parts.host != config.hostname) return res.status(400).send(); return requestProxy({ cache: redis.createClient(), cacheMaxAge: 3600, url: req.query.url })(req, res, next); }
The very same code works for other requests/mime-types such as plain HTML or text.
How can we solve this?
The text was updated successfully, but these errors were encountered:
@promethe42 try: const redisClient = redis.createClient({ return_buffers: true });
Sorry, something went wrong.
No branches or pull requests
Hello,
I'm trying to use this module to proxy and cache some images coming from external services.
It works when I don't set the
cache
option.The very same code works for other requests/mime-types such as plain HTML or text.
How can we solve this?
The text was updated successfully, but these errors were encountered: