[Varnish] #816: Add a way to get the hash used (req.hash)
Varnish
varnish-bugs at varnish-cache.org
Thu Nov 18 15:46:27 CET 2010
#816: Add a way to get the hash used (req.hash)
-------------------------+--------------------------------------------------
Reporter: grosser2 | Owner: phk
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Comment(by grosser2):
what i am currently using is:
set req.http.X-Hash = xxx;
set req.http.X-Hash = "#" yyy;
...
set req.hash = req.http.X-Hash;
and in the app i copy req headers to response
headers['X-Hash'] = request.headers['HTTP_X_HASH']
it works but its quiet ugly :>
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/816#comment:1>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list