How to cache req.body and then use it in response for coming requests in varnish

Yuan Zafir eyz12315 at live.cn
Mon Aug 12 05:41:06 UTC 2019


Hi,I am trying to configure varnish as a simple cache service, which means the content posted by clients could be cached as an object. The content chould be returned in responses for the coming GET requests(with same url...). I am not sure wether this can be realized by VCL configuration.

Any recommendation for this situation? Thanks for any help!

I was noticed vmod-bodyaccess can cache req.body and then it could be used in bereq(https://info.varnish-software.com/blog/caching-post-requests-with-varnish), but I do not know how to put it into responses for clients.

thanks!
Zafir
________________________________
eyz12315 at live.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20190812/cb2f7017/attachment-0001.html>


More information about the varnish-misc mailing list