<div dir="ltr">Yes. <div><br></div><div>Nginx will obey the Cache-Control/Expire headers. It won't delete, but it will refresh the files so that the served content is fresh.<div>So it is as if the files were deleted. AFAIK deletion happens more often when the file is not accessed for given time specified through the inactive</div>
<div>parameter of the proxy_cache_path/fastcgi_cache_path directives. </div></div></div><div class="gmail_extra"><br clear="all"><div>----appa<br><br></div>
<br><br><div class="gmail_quote">On Mon, Dec 30, 2013 at 5:27 AM, Indo Php <span dir="ltr"><<a href="mailto:iptablez@yahoo.com" target="_blank">iptablez@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div><span>Hi</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
<span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span>Is that means that nginx will put the files based on the upstream expire headers? After that nginx will delete the cache files?</span></div>
<div><div class="h5"><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br></span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br></span></div><div style="display:block">
<br> <br> <div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:12pt"> <div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:12pt">
<div dir="ltr"> <font face="Arial"> On Tuesday, December 24, 2013 10:28 PM, António P. P. Almeida <<a href="mailto:appa@perusio.net" target="_blank">appa@perusio.net</a>> wrote:<br> </font> </div> <div><div><div><div dir="ltr">
Why you want to do this? nginx can manage expiration/cache-control headers all by itself.<div><br clear="none"></div><div>As soon as the defined max-age is set it returns a
upstream status of EXPIRED until it fetches a fresh</div>
<div>page from upstream.</div><div><br clear="none"></div><div>Deleting won't buy you anything in terms of content freshness.</div><div><br clear="none"></div><div><br clear="none"><div><br clear="none"></div><div><br clear="none">
</div></div></div><div><br clear="all">
<div>----appa<br clear="none"><br clear="none"></div>
<br clear="none"><br clear="none"><div>On Tue, Dec 24, 2013 at 3:57 AM, Indo Php <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:iptablez@yahoo.com" target="_blank">iptablez@yahoo.com</a>></span> wrote:<br clear="none">
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><div style="font-size:12pt;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><div><span>Hello..</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
<span><br clear="none"></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span>Can somebody help me on this?</span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none"></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
<span>Thank you before</span></div><div style="display:block"> <br clear="none"> <br clear="none"> <div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:12pt">
<div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:12pt">
<div><div> <div dir="ltr"> <font face="Arial"> On Thursday, December 19, 2013 11:21 AM, Indo Php <<a rel="nofollow" shape="rect" href="mailto:iptablez@yahoo.com" target="_blank">iptablez@yahoo.com</a>> wrote:<br clear="none">
</font> </div> </div>
</div><div><div><div><div><div><div style="font-size:12pt;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><div>Hi</div><div><br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
I'm using proxy_cache to mirror my files with the configuration below</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
<br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
</div><div>proxy_cache_path /var/cache/nginx/image levels=1:2 keys_zone=one:10m inactive=7d max_size=100g;</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
<br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">Our backend server has the expires header set to 600secs</div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
Is that posibble for us to also delete the cache files located at<span style="font-size:12pt"> </span><span style="font-size:12pt">/var/cache/nginx/image depends on the backend expire header?</span></div><div style="font-style:normal;font-size:12pt;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
<span style="font-size:12pt"><br clear="none"></span></div></div></div></div><br clear="none"></div></div>_______________________________________________<br clear="none">nginx mailing list<br clear="none"><a rel="nofollow" shape="rect" href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br clear="none">
<a rel="nofollow" shape="rect" href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br clear="none"><br clear="none"></div> </div> </div> </div> </div>
</div></div><br clear="none">_______________________________________________<br clear="none">
nginx mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br clear="none">
<a rel="nofollow" shape="rect" href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br clear="none"></blockquote></div><br clear="none"></div></div></div>
<br><div>_______________________________________________<br clear="none">nginx mailing list<br clear="none"><a shape="rect" href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br clear="none"><a shape="rect" href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></div>
<br><br></div> </div> </div> </div> </div></div></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></div>