Caching based on POST data

Erik Cederstrand erik at
Wed Apr 28 21:56:34 CEST 2010

Den 28/04/2010 kl. 16.21 skrev Laurence Rowe:

> 2010/4/28 Erik Cederstrand <erik at>:
>> Hi list
>> I'm new to Varnish. I host a web application (which is otherwise not in my control) which basically shows the timetable for school classes on a number of schools. It does this (and don't ask me why) by mixing a POST and GET request to pass the parameters needed to show the correct timetable. So, e.g. the users visits the URL  /Timetable.jsp/school=MySchool which contains a form. The user then selects the class in a form, which is then sent to the server as a POST request to Timetable.jsp/school=MySchool.
>> I want to cache these timetable views using Varnish. But is there any way to access the POST body in Varnish, so I can append the school and class ID's to the req.hash and fetch the correct cached object afterwards?
> There's no support for this.

Thanks for your answer. Google found this for me:, but unfortunately it doesn't compile on my FreeBSD box because of missing headers.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1928 bytes
Desc: not available
URL: <>

More information about the varnish-misc mailing list