<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
i don't express myself well,<br>
<br>
then i talk about in detail the whole process i understand, please help me to check it<br>
<br>
<p class="MsoNormal" style="margin-bottom: 12pt;">based on the configuration as below:</p>
<pre>sub vcl_fetch {<br> if (!obj.cacheable) {<br> # Limit the lifetime of all 'hit for pass' objects to 10 seconds<br> obj.ttl = 10s;<br> pass;<br> }<br>}<br><br>1) after varnish get the object from the backend server, then the process will enter the hook vcl_fetch accoding to the configuration code above<br>
<br>2) if the obj is not cacheable, then varnish switch to "pass mode" accoding to the configuration code above<br> <br>3) entering the pass model means varnish will get the object from the backend server again?<br>
</pre>
<br>
<br>
<br>
<div class="gmail_quote">在 2011年4月7日 下午6:10,Traian Bratucu <span dir="ltr"><<a href="mailto:traian.bratucu@eea.europa.eu">traian.bratucu@eea.europa.eu</a>></span>写道:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Please read the documentation you are referring to. You are talking about “hit for pass” behaviour, it is clearly explained there, in English. Since I cannot explain again in another
language, please read it more carefully.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US">
</span><span style="font-size: 10pt;" lang="ZH-CN">彭伟</span><span style="font-size: 10pt;" lang="EN-US"> [mailto:<a href="mailto:pwlazy@gmail.com" target="_blank">pwlazy@gmail.com</a>]
<br>
<b>Sent:</b> Thursday, April 07, 2011 12:05 PM<br>
<b>To:</b> Traian Bratucu<br>
<b>Cc:</b> <a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<b>Subject:</b> Re: a possible dead cycle?</span></p>
<div>
<div></div>
<div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom: 12pt;">based on the configuration as below:</p>
<pre>sub vcl_fetch {<br> if (!obj.cacheable) {<br> # Limit the lifetime of all 'hit for pass' objects to 10 seconds<br>
obj.ttl = 10s;<br> pass;<br> }<br>}<br><br></pre>
<pre><br>when the object is not cacheable, then go to "pass" which means going to fetch the object from the backend server again?</pre>
<p class="MsoNormal" style="margin-bottom: 12pt;"> </p>
<div>
<p class="MsoNormal">2011/4/7 Traian Bratucu <<a href="mailto:traian.bratucu@eea.europa.eu" target="_blank">traian.bratucu@eea.europa.eu</a>></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">No, if an object is not cacheable, it will simply not be cached (stored in memory and later served from here instead of fetching from the backend), but IT WILL BE DELIVERED to the
client. </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">The only time varnish will re-fetch the object from the backend is on a new client request.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Traian</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US">
<a href="mailto:varnish-misc-bounces@varnish-cache.org" target="_blank">varnish-misc-bounces@varnish-cache.org</a> [mailto:<a href="mailto:varnish-misc-bounces@varnish-cache.org" target="_blank">varnish-misc-bounces@varnish-cache.org</a>]
<b>On Behalf Of </b>??<br>
<b>Sent:</b> Thursday, April 07, 2011 11:25 AM<br>
<b>To:</b> <a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<b>Subject:</b> a possible dead cycle?</span></p>
<div>
<div>
<div>
<p class="MsoNormal"><br>
when varnish fetch a page from backend server, and find it 's not cacheable, so go to fetch the page from backend sever again?<br>
</p>
</div>
<div>
<p class="MsoNormal"> and find it 's not cacheable again , so again and agian .......?<br>
<br>
please help me! thanks !<br>
<br>
</p>
<pre> Regards! <br> pwlazy</pre>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></p>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote>
</div>
<br>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This email (including any attachments) is confidential and may be legally privileged. If you received this email in error, please delete it immediately and do not copy it or use it for any purpose or disclose its contents to any other person. Thank you.<br>
<br>
本电邮(包括任何附件)可能含有机密资料并受法律保护。如您不是正确的收件人,请您立即删除本邮件。请不要将本电邮进行复制并用作任何其他用途、或透露本邮件之内容。谢谢。<br>
</font>
</body>
</html>