Changing req.hash

Tollef Fog Heen tfheen at varnish-software.com
Wed Jun 2 10:01:37 CEST 2010


]] Martin Goldman 

| But I'm not totally clear on how appending "mobile" to the hash changes the
| syntax. I remember reading once that custom VCL runs *before* the default
| VCL, so I thought the hash would be something like this:
| 
|  ^mobile/this/is/the/uri#mysite.com#$
| 
| However, purging that doesn't work. Any ideas?

It's more likely to be ^mobile#/this/is/the/uri#mysite.com#$, but why
don't you just purge by host and url instead?

purge("req.url == " req.url " && req.http.host == " req.http.host); at
the right place in your VCL.

-- 
Tollef Fog Heen
Varnish Software
t: +47 21 54 41 73




More information about the varnish-misc mailing list