Yes. But be aware of Cache-Control header sent by your backend. (<a href="http://wiki.nginx.org/HttpProxyModule#proxy_cache">http://wiki.nginx.org/HttpProxyModule#proxy_cache</a> : The cache honors backend's "Expires", "Cache-Control: no-cache", and "Cache-Control: max-age=XXX" headers since version 0.7.48. Since version 7.66, "private" and "no-store" are also honored.)<br>
<br><div class="gmail_quote">On Wed, Nov 23, 2011 at 05:31, Quintin Par <span dir="ltr"><<a href="mailto:quintinpar@gmail.com">quintinpar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#000099">Can someone help me if this please?<br></font><div><div></div><div class="h5"><br><div class="gmail_quote">On Tue, Nov 22, 2011 at 8:53 AM, Quintin Par <span dir="ltr"><<a href="mailto:quintinpar@gmail.com" target="_blank">quintinpar@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>Hi all,</p><p>I have this in my location directive</p>

<p>                    proxy_cache_bypass                     $http_soon;</p>

<p>now I do a curl call to invalidate </p>

<p> </p>

<p>[user@ip-10-111 ~]$ curl "<a href="http://www.site.com/teaser" target="_blank">www.site.com/teaser</a>"
-I -H "soon:true"</p>

<p>HTTP/1.1 200 OK</p>

<p>Server: nginx</p>

<p>Date: Tue, 22 Nov 2011 03:07:20 GMT</p>

<p>Content-Type: text/html; charset=utf-8</p>

<p>Connection: keep-alive</p>

<p>Keep-Alive: timeout=60</p>

<p>Vary: Accept-Encoding</p>

<p>Vary: Cookie</p>

<p>X-Mod-Pagespeed: 0.9.17.7-716</p>

<p>Cache-Control: max-age=0, no-cache, no-store</p>

<p>X-Cache-Status: BYPASS</p>

<p> </p>

<p>[user@ip-10-111 ~]$ curl "<a href="http://www.site.com/teaser" target="_blank">www.site.com/teaser</a>"
-I</p>

<p>HTTP/1.1 200 OK</p>

<p>Server: nginx</p>

<p>Date: Tue, 22 Nov 2011 03:07:37 GMT</p>

<p>Content-Type: text/html; charset=utf-8</p>

<p>Connection: keep-alive</p>

<p>Keep-Alive: timeout=60</p>

<p>Vary: Accept-Encoding</p>

<p>Vary: Cookie</p>

<p>X-Mod-Pagespeed: 0.9.17.7-716</p>

<p>Cache-Control: max-age=0, no-cache, no-store</p>

<p>X-Cache-Status: HIT</p>

<p> </p>

<p>Does this mean that the curl call with the header is<b>
recaching the page and the subsequent hits are cache hits?</b></p><p>-Quintin </p>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br>