Exclude a URL
Flavio Torres
fla_torres at yahoo.com.br
Wed Jan 12 15:48:20 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/12/2011 09:16 AM, Eduardo Gimenez Ruiz wrote:
> Hi all in the list:
>
Hola! ;)
> I use a Varnish Version 1.1.2 with pressflow (a kind of drupal)
> and i try to exclude a URL (or a path) from the cache.
>
Do you mean 2.1.2 ?
> I use this configuration in my default.vcl:
>
> sub vcl_recv { if (req.url ~ "^/portal/ajax_user_bar") { //return
> (pass); //pass; unset req.http.cookie; } [other code] }
>
try this [1]:
if (req.url ~ "ajax_user_bar") {
return (pipe);
}
> And in all case I see this result with "varnishtop -b -i TxURL"
> is:
>
> 1.00 TxURL /portal/ajax_user_bar/login?0.9301228949334472
>
> The number after the "login?" are a ramdom number from the code
> and the "ajax_user_bar" is a module in pressflow not a directory of
> the OS.
>
Don't worry, varnish will match "ajax_user_bar"
>
> Thank for all help, advice or documentation that you can give me.
[1] - http://www.varnish-cache.org/trac/wiki/VCL#vcl_pipe
hope this helps
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk0tvzIACgkQNRQApncg296V4ACg2DhT1311CEueyv4WNlosXJuq
wYEAnReacApkqcPTtds2yFD6nLdwOUcL
=EJHg
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110112/a6e54cbd/attachment-0003.html>
More information about the varnish-misc
mailing list