不过NGINX本身也没有支持对后端的 ims <div><br></div><div>如果后端的源数据没有更新, 即时缓存过期了也不应该更新才对</div><div><br></div><div>这个SQUID是有的, 不知道NGINX什么时候可以有<br><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 2:09 AM, 杨镭 <span dir="ltr">&lt;<a href="mailto:clanherb@gmail.com">clanherb@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">强制刷新 (shift + reload) nginx不支持。但nginx作者有自己的意见,详见igor的解释。<br>这个我觉得都有道理<br><br><div class="gmail_quote">2009/8/4 Mirosław Jaworski <span dir="ltr">&lt;<a href="mailto:mjaw@ikp.pl" target="_blank">mjaw@ikp.pl</a>&gt;</span><div>
<div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div>On Mon, 2009-08-03 at 16:34 +0400, Igor Sysoev wrote:<br>
&gt; &gt; &gt; No, currently nginx ignores the reload because everyone may flush<br>
&gt; &gt; &gt; popular and heavy generated pages from your cache.<br>
&gt; &gt; &gt; I plan to allow reload only from limited set of addresses.<br>
&gt; &gt;<br>
&gt; &gt; Cache-control: no-cache request isn&#39;t supposed to revalidate/invalidate<br>
&gt; &gt; cache.<br>
&gt; &gt;<br>
&gt; &gt; Logic is fairly trivial - exactly as i showed in my nonexisting<br>
&gt; &gt; variable/wrong syntax example - nginx should simply omit checking<br>
&gt; &gt; the cache when receiving such request, go for the backend and serve<br>
&gt; &gt; backend&#39;s response without doing anything to the cache.<br>
&gt;<br>
&gt; RFC does not say that server must not cache this response, it just says<br>
&gt; that is must bot use previously cached response.<br>
<br>
</div>Yet nginx does use cached response, breaking it. That&#39;s the most<br>
important part which needs addressing.<br>
<br>
My suggestion not only complies with RFC but also allows to avoid<br>
treating &quot;Cache-control: no-cache&quot; request as uncontrollable way to<br>
tamper with the cache.<br>
<div><br>
&gt; Anyway, &quot;Cache-control&quot; should be supported from trusted addresses only:<br>
&gt; nginx is not generic transit proxy, it&#39;s accelerator, it&#39;s just part<br>
&gt; of web-server.<br>
<br>
</div>And should comply with RFC as such. It may be a nice _feature_<br>
for some to limit it using some cache_control_restrict though.<br>
<br>
Back to the problem - if i can&#39;t use cache depend on some request<br>
header, can i make it IP dependent?<br>
<div><br>
--<br>
Mirosław &quot;Psyborg&quot; Jaworski<br>
GCS/IT d- s+:+ a C++$ UBI++++$ P+++$ L- E--- W++(+++)$ N++ o+ K- w-- O-<br>
M- V- PS+ PE++ Y+ PGP t 5? X+ R++ !tv b++(+++) DI++ D+ G e* h++ r+++ y?<br>
</div>              &quot;If at first you don&#39;t succeed, redefine success.&quot;<br>
<br>
<br>
</blockquote></div></div></div><br>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
<br></blockquote></div><br></div>