Thanks,<br><br>That helps me understand how hash tables work.<br><br>Question: Is this for proxy_cache:<br>Bugfix: now nginx takes into account the &quot;X-Accel-Expires&quot;, &quot;Expires&quot;, and &quot;Cache-Control&quot; header lines in a backend response.<br>
<br>Or are files always cached for time specified in proxy_cache_valid?<br><br>Purging would be amazing, that way I could set proxy_cache_valid to a day or more, and know that if a change was made I could just issue a purge for that specific key, or key path.<br>
<br>Any plans for nginx to manage the cache by doing a HEAD request looking for changed content automatically on the origin at certain intervals?<br><br>Thanks!<br><br>John<br><br><br><br><br><br><br><div class="gmail_quote">
2009/4/10 Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, Apr 09, 2009 at 02:27:15PM -0500, Resicow wrote:<br>
<br>
&gt; Hi Igor (and everyone else),<br>
&gt;<br>
&gt; I had a few quick questions about the new proxy_cache feature, and I<br>
&gt; apologize if they have already been answered.<br>
&gt;<br>
&gt; 1) What about query_strings? Does proxy_cache ignore or include<br>
&gt; query_strings? Is there a way to have it ignore query_strings in the URL?<br>
<br>
</div>By default qeury strings are included. You may ignore them using something<br>
like this:<br>
<br>
    proxy_cache_key   $host/$uri&quot;;<br>
<br>
The default proxy_cache_key approximates<br>
<br>
    proxy_cache_key  $scheme$proxy_host$uri$is_args$args;<br>
<div class="im"><br>
&gt; 2) How scalable is this system? Could it handle 50 million different<br>
&gt; URIs for instance?<br>
<br>
</div>Each key takes 128 bytes in shared memory zone. Therefore you need 6.1G zone:<br>
<br>
   key_zone=NAME:6200m;<br>
<div class="im"><br>
&gt; 3) Any plans for purge capabilities somehow, in the event you need the<br>
&gt; content flushed right away?<br>
<br>
</div>Yes, there are such plans.<br>
<div class="im"><br>
&gt; Keep up the great work, thanks for making the world&#39;s best server!<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; John<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Igor Sysoev wrote:<br>
&gt; &gt;On Wed, Apr 08, 2009 at 11:16:30AM +0000, Glen Lumanau wrote:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;&gt;How about jpg, css, js or any other files?<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;No problems with these files. Actually, there are no problems with flv<br>
&gt; &gt;itself. The issue is when you want to get /some.flv?start=5000.<br>
&gt; &gt;However, it seems flv handler can be converted easy enough to filter.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;&gt;------Original Message------<br>
&gt; &gt;&gt;From: Igor Sysoev<br>
&gt; &gt;&gt;Sender: <a href="mailto:owner-nginx@sysoev.ru">owner-nginx@sysoev.ru</a><br>
&gt; &gt;&gt;To: <a href="mailto:nginx@sysoev.ru">nginx@sysoev.ru</a><br>
&gt; &gt;&gt;ReplyTo: <a href="mailto:nginx@sysoev.ru">nginx@sysoev.ru</a><br>
&gt; &gt;&gt;Subject: Re: Re: nginx + caching of static files<br>
&gt; &gt;&gt;Sent: Apr 8, 2009 6:04 PM<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;On Wed, Apr 08, 2009 at 10:51:59AM +0800, ???? wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt;Dear Igor,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;Then, how to use proxy_cache WITH flv streaming?<br>
&gt; &gt;&gt;&gt;I tried proxy_cache feature, but it seems that the flv streaming<br>
&gt; &gt;&gt;&gt;function does not work with proxy_cache.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;No, flv is not filter, but handler, thefore it&#39;s not possible.<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
<br>
</div><div><div></div><div class="h5">--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br>