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

Yuan Zafir eyz12315 at
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(, but I do not know how to put it into responses for clients.

eyz12315 at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list