<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 14/12/18 10:37 pm, Alex Rousskov
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:efed6d2b-d9dd-eb60-6ca8-433a3555a2cd@measurement-factory.com">
<pre class="moz-quote-pre" wrap="">On 12/14/18 9:26 AM, Amish wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">url_rewrite_program /usr/lib/squid/url_rewrite
url_rewrite_extras "policy=%{policy_}note"
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">I was expecting that %{policy_}note will pass on only latest value
to url_rewrite but somehow it passes old value + new value.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Modern[1] Squid versions should remove old same-name annotations when
adding new ones. If you are running a supported version, and your Squid
merges/appends annotations, consider filing a bug report.
</pre>
</blockquote>
<br>
Sorry that I forgot to mention squid version.<br>
<br>
But I am using squid 4.4 (Arch Linux)<br>
<br>
<blockquote type="cite"
cite="mid:efed6d2b-d9dd-eb60-6ca8-433a3555a2cd@measurement-factory.com">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">How to pass only the latest value with note macro?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
With modern Squids, you should not do anything special to accomplish
that. Only the latest annotation value should be preserved. If that is
not happening in your tests, consider filing a bug report, especially if
you can reproduce with Squid v4+.
[1]
<a class="moz-txt-link-freetext" href="https://github.com/squid-cache/squid/commit/457857fe7cf51037cd9e54e86c0985391d7ea594">https://github.com/squid-cache/squid/commit/457857fe7cf51037cd9e54e86c0985391d7ea594</a>
</pre>
</blockquote>
<br>
I have not set any <span class="blob-code-inner
blob-code-marker-addition"> clt_conn_tag=TAG</span>.<br>
<br>
Does this feature of latest note value work only if I set <span
class="blob-code-inner blob-code-marker-addition">
clt_conn_tag=TAG</span>?<br>
<br>
If yes, do you mean I need to set <span class="blob-code-inner
blob-code-marker-addition"> clt_conn_tag=policy_?<br>
<br>
Will file bug report if answer is no.<br>
<br>
Thanks<br>
<br>
Amish.</span><br>
</body>
</html>