Hi again:
Failure, I changed the sintax for to include the code that Flavio says
if (req.url ~ "ajax_user_bar") {
return (pipe);
}
And I tried to use "return (pass);" but varnish take a cache to the call
of the browser.... (it says so?).... sorry for my english, but i don't
know that said this :(
I see:
* In chromium that header response is:
X-Varnish:791424256
* In varnishlog -o -b:
14 BackendOpen b default 127.0.0.1 59592 127.0.0.1 8080
14 TxRequest b GET
14 TxURL b /portal/ajax_user_bar/login?0.786534147337079
14 TxProtocol b HTTP/1.0
14 TxHeader b Host: maq.domain.com
14 TxHeader b Referer: http://maq.domain.com/portal/
14 TxHeader b X-Requested-With: XMLHttpRequest
14 TxHeader b Accept: text/html, */*
14 TxHeader b User-Agent: Mozilla/5.0 (X11; U; Linux i686;
en-US) AppleWebKit/534.10 (KHTML, like Gecko) Ubuntu/10.04
Chromium/8.0.552.224 Chrome/8.0.552.224 Safari/534.10
* varnishtop -b -i TxURL:
0.99 TxURL /portal/ajax_user_bar/login?0.35733756981790066
how can i change this actions from varnish?,
On 01/12/2011 04:09 PM, Eduardo Gimenez Ruiz wrote:
Hi and Hola for the Spanish speaking in the list :D
Thank you so much for your answers..... now I try to update the
version of my varnish.
Thank to Flavio and Kristian for their answers, when will be finish
update correctly my varnish I will try to follow your advice.
On 01/12/2011 03:48 PM, Flavio Torres wrote:
-----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-----
--
Eduardo Giménez Ruiz
Móvil: (+34) 615 90 60 98
Fax: (+34) 91 799 55 30
____________________________
Parque empresarial La Finca
Paseo del Club Deportivo, 1 - Bloque 11
28223 Pozuelo de Alarcón
Madrid
____________________________
http://www.vectorsf.com
--
Eduardo Giménez Ruiz
Móvil: (+34) 615 90 60 98
Fax: (+34) 91 799 55 30
____________________________
Parque empresarial La Finca
Paseo del Club Deportivo, 1 - Bloque 11
28223 Pozuelo de Alarcón
Madrid
____________________________
http://www.vectorsf.com
_______________________________________________
varnish-misc mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc