<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<font size="-1"><font face="Century Schoolbook L">Hi again:<br>
<br>
Failure, I changed the sintax for to include the code that
Flavio says<br>
<br>
if (req.url ~ "ajax_user_bar") {<br>
return (pipe);<br>
}<br>
<br>
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 :(<br>
<br>
I see:<br>
* In chromium that header response is:<br>
X-Varnish:791424256 <br>
* In varnishlog -o -b:<br>
14 BackendOpen b default 127.0.0.1 59592 127.0.0.1 8080<br>
14 TxRequest b GET<br>
14 TxURL b
/portal/ajax_user_bar/login?0.786534147337079<br>
14 TxProtocol b HTTP/1.0<br>
14 TxHeader b Host: maq.domain.com<br>
14 TxHeader b Referer: <a class="moz-txt-link-freetext" href="http://">http://</a></font></font><font
size="-1"><font face="Century Schoolbook L">maq.domain.com</font></font><font
size="-1"><font face="Century Schoolbook L">/portal/<br>
14 TxHeader b X-Requested-With: XMLHttpRequest<br>
14 TxHeader b Accept: text/html, */*<br>
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<br>
* varnishtop -b -i TxURL:<br>
0.99 TxURL
/portal/ajax_user_bar/login?0.35733756981790066<br>
<br>
how can i change this actions from varnish?,<br>
<br>
</font></font><br>
On 01/12/2011 04:09 PM, Eduardo Gimenez Ruiz wrote:
<blockquote cite="mid:4D2DC419.5090503@vectorsf.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<font size="-1"><font face="Century Schoolbook L">Hi and Hola for
the Spanish speaking in the list :D<br>
<br>
Thank you so much for your answers..... now I try to update
the version of my varnish.<br>
<br>
Thank to Flavio and Kristian for their answers, when will be
finish update correctly my varnish I will try to follow your
advice.<br>
</font></font><br>
On 01/12/2011 03:48 PM, Flavio Torres wrote:
<blockquote cite="mid:4D2DBF34.10109@yahoo.com.br" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
On 01/12/2011 09:16 AM, Eduardo Gimenez Ruiz wrote:<br>
<span style="white-space: pre;">> Hi all in the list:<br>
<br>
<br>
<br>
> </span><br>
<br>
Hola! ;)<br>
<br>
<br>
<span style="white-space: pre;">> I use a Varnish Version
1.1.2<br>
<br>
with pressflow (a kind of drupal)<br>
<br>
<br>
<br>
> and i try to exclude a URL (or a path) from the cache.<br>
<br>
<br>
<br>
> </span><br>
<br>
Do you mean 2.1.2 ?<br>
<br>
<span style="white-space: pre;">> I use this configuration in<br>
<br>
my default.vcl:<br>
<br>
<br>
<br>
> <br>
<br>
<br>
<br>
> sub vcl_recv { if (req.url ~ "^/portal/ajax_user_bar") {<br>
<br>
//return<br>
<br>
<br>
<br>
> (pass); //pass; unset req.http.cookie; } [other code] }<br>
<br>
<br>
<br>
> </span><br>
<br>
try this [1]:<br>
<br>
if (req.url ~ "ajax_user_bar") {<br>
return (pipe);<br>
}<br>
<br>
<br>
<br>
<span style="white-space: pre;">> And in all case I see this<br>
<br>
result with "varnishtop -b -i TxURL"<br>
<br>
<br>
<br>
> is:<br>
<br>
<br>
<br>
> <br>
<br>
<br>
<br>
> 1.00 TxURL /portal/ajax_user_bar/login?0.9301228949334472<br>
<br>
<br>
<br>
> <br>
<br>
<br>
<br>
> The number after the "login?" are a ramdom number from
the<br>
<br>
code<br>
<br>
<br>
<br>
> and the "ajax_user_bar" is a module in pressflow not a<br>
<br>
directory of<br>
<br>
<br>
<br>
> the OS.<br>
<br>
<br>
<br>
> </span><br>
<br>
Don't worry, varnish will match "ajax_user_bar"<br>
<br>
<span style="white-space: pre;">> <br>
<br>
<br>
<br>
> Thank for all help, advice or documentation that you can<br>
<br>
give me.</span><br>
<br>
<br>
[1] - <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.varnish-cache.org/trac/wiki/VCL#vcl_pipe">http://www.varnish-cache.org/trac/wiki/VCL#vcl_pipe</a><br>
<br>
<br>
hope this helps<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>
<br>
iEYEARECAAYFAk0tvzIACgkQNRQApncg296V4ACg2DhT1311CEueyv4WNlosXJuq<br>
wYEAnReacApkqcPTtds2yFD6nLdwOUcL<br>
=EJHg<br>
-----END PGP SIGNATURE-----<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
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
____________________________
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vectorsf.com">http://www.vectorsf.com</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
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
____________________________
<a class="moz-txt-link-freetext" href="http://www.vectorsf.com">http://www.vectorsf.com</a>
</pre>
</body>
</html>