h2o / h2o

H2O - the optimized HTTP/1, HTTP/2, HTTP/3 server
https://h2o.examp1e.net
MIT License
10.87k stars 839 forks source link

Feature Request : Proxy Cache #776

Open dtruffaut opened 8 years ago

dtruffaut commented 8 years ago

h2o cache aware server push (http2-casper) is a brilliant feature, that performs very well for assets.

... But there is currently no cache mechanism for the caller : the html document.

Please provide a proxy cache directive to be able to cache/microcache the result of the back-end response.

See also : NginX proxy cache https://www.nginx.com/resources/wiki/start/topics/examples/reverseproxycachingexample/ https://www.nginx.com/blog/nginx-caching-guide/ https://www.nginx.com/blog/benefits-of-microcaching-nginx/ https://www.nginx.com/resources/admin-guide/nginx-tcp-ssl-upstreams/

basbebe commented 8 years ago

+1 maybe mruby and a Redis backend could be a solution?

kazuho commented 8 years ago

Thank you for the suggestion. Cache is something nice to have.

Until it gets implemented, you should implement your own using mruby, as suggested by @bax- .