<div dir="ltr">Hello group,<br><br>I tried using the %-escaped syntax but it does not work for me. Here is the rule that varnish totally ignores as if it doesn't exist:<br><br>===========================================================================================<br>
# cache AR taxonomy differently<br> else if (req.url == "/%25D9%2588%25D8%25B3%25D9%2588%25D9%2585%25D8%25A7%25D8%25AA") {<br> set beresp.http.X-Cacheable = "Yes";<br> set beresp.ttl = 180m;<br>
return(deliver);<br> }<br> ==========================================================================================<br><br>The link exists, and even copying it in this syntax to the browser retrieves the page, but the caching for 180 minutes does not work. Other rules with only English URLS are working like a charm. Please help.<br>
<br>Thanks.<br><br><br><div class="gmail_quote">On Wed, Jun 2, 2010 at 3:56 PM, Angie T. Muhammad <span dir="ltr"><<a href="mailto:angie.tawfik@gmail.com" target="_blank">angie.tawfik@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I tried the second syntax many times before. Varnish refuses to start.<br>
But the good news it accepted the first syntax. I will be checking if<br>
it applies the rule as required and update you.<br>
<br>
Thank you Tollef :)<br>
<div><div></div><div><br>
On 6/2/10, Tollef Fog Heen <<a href="mailto:tfheen@varnish-software.com" target="_blank">tfheen@varnish-software.com</a>> wrote:<br>
> ]] "Angie T. Muhammad"<br>
><br>
> | I get some lines like:<br>
> | 14 TxHeader b Referer:<br>
> |<br>
> <a href="http://myserver.example.com/news/%D8%A7%D9%84%D9%85%D9%84%D9%8A%D8%A7%D8%B1%D8%AF%D9%8A%D8%B1-%D8%A7%D9%84%D9%85%D8%B5%D8%B1%D9%8A-%C2%AB%D9%85%D8%AD%D9%85%D8%AF-%D8%A7%D9%84%D9%81%D8%A7%D9%8A%D8%AF%C2%BB-%D9%8A%D9%82%D8%B1%D8%B1-%D8%A8%D9%8A%D" target="_blank">http://myserver.example.com/news/%D8%A7%D9%84%D9%85%D9%84%D9%8A%D8%A7%D8%B1%D8%AF%D9%8A%D8%B1-%D8%A7%D9%84%D9%85%D8%B5%D8%B1%D9%8A-%C2%AB%D9%85%D8%AD%D9%85%D8%AF-%D8%A7%D9%84%D9%81%D8%A7%D9%8A%D8%AF%C2%BB-%D9%8A%D9%82%D8%B1%D8%B1-%D8%A8%D9%8A%D</a><br>
> |<br>
> | The point is that I need to make varnish accept such percentages or any<br>
> | other syntax in VCL file. So that some pages are cached longer based on<br>
> | their Arabic address (Like the one in the referer above).<br>
><br>
> We use %-escaped strings in vcl, so referring to that string above would<br>
> be to match it to<br>
><br>
> «<a href="http://myserver.example.com/news/%25D8%25A7%25D9%2584%25D9%2585%25D9%2584%25D9%258A%25D8%25A7%25D8%25B1%25D8%25AF%25D9%258A%25D8%25B1-%25D8%25A7%25D9%2584%25D9%2585%25D8%25B5%25D8%25B1%25D9%258A-%25C2%25AB%25D9%2585%25D8%25AD%25D9%2585%25D8%25AF-%25D8%25A7%25D9%2584%25D9%2581%25D8%25A7%25D9%258A%25D8%25AF%25C2%25BB-%25D9%258A%25D9%2582%25D8%25B1%25D8%25B1-%25D8%25A8%25D9%258A%25D" target="_blank">http://myserver.example.com/news/%25D8%25A7%25D9%2584%25D9%2585%25D9%2584%25D9%258A%25D8%25A7%25D8%25B1%25D8%25AF%25D9%258A%25D8%25B1-%25D8%25A7%25D9%2584%25D9%2585%25D8%25B5%25D8%25B1%25D9%258A-%25C2%25AB%25D9%2585%25D8%25AD%25D9%2585%25D8%25AF-%25D8%25A7%25D9%2584%25D9%2581%25D8%25A7%25D9%258A%25D8%25AF%25C2%25BB-%25D9%258A%25D9%2582%25D8%25B1%25D8%25B1-%25D8%25A8%25D9%258A%25D</a>»<br>
><br>
> or more easily<br>
><br>
> {"<a href="http://myserver.example.com/news/%D8%A7%D9%84%D9%85%D9%84%D9%8A%D8%A7%D8%B1%D8%AF%D9%8A%D8%B1-%D8%A7%D9%84%D9%85%D8%B5%D8%B1%D9%8A-%C2%AB%D9%85%D8%AD%D9%85%D8%AF-%D8%A7%D9%84%D9%81%D8%A7%D9%8A%D8%AF%C2%BB-%D9%8A%D9%82%D8%B1%D8%B1-%D8%A8%D9%8A%D" target="_blank">http://myserver.example.com/news/%D8%A7%D9%84%D9%85%D9%84%D9%8A%D8%A7%D8%B1%D8%AF%D9%8A%D8%B1-%D8%A7%D9%84%D9%85%D8%B5%D8%B1%D9%8A-%C2%AB%D9%85%D8%AD%D9%85%D8%AF-%D8%A7%D9%84%D9%81%D8%A7%D9%8A%D8%AF%C2%BB-%D9%8A%D9%82%D8%B1%D8%B1-%D8%A8%D9%8A%D</a>"}<br>
><br>
> --<br>
> Tollef Fog Heen<br>
> Varnish Software<br>
> t: +47 21 54 41 73<br>
><br>
<br>
<br>
</div></div><div><div></div><div>--<br>
All the best,<br>
Angie T. Muhammad<br>
Linux Systems Engineer<br>
Al Masry Al Youm<br>
<a href="http://www.almasryalyoum.com/en" target="_blank">http://www.almasryalyoum.com/en</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>All the best,<br>Angie T. Muhammad<br>Linux Systems Engineer<br>Al Masry Al Youm<br><a href="http://www.almasryalyoum.com/en" target="_blank">http://www.almasryalyoum.com/en</a><br>
</div>