<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Thanks that makes clear!</span></div><div class="yahoo_quoted" 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 size="2" face="Arial"> On Friday, January 3, 2014 2:19 AM, António P. P. Almeida <appa@perusio.net> wrote:<br> </font> </div> <div class="y_msg_container"><div id="yiv0075597543"><div><div dir="ltr">Yes. <div><br clear="none"></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="yiv0075597543gmail_extra"><br clear="all"><div>----appa<br clear="none"><br clear="none"></div>
<br clear="none"><br clear="none"><div class="yiv0075597543gmail_quote">On Mon, Dec 30, 2013 at 5:27 AM, Indo Php <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:iptablez@yahoo.com" target="_blank" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv0075597543gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="yiv0075597543yqt5226931623" id="yiv0075597543yqt18436"><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 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>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="yiv0075597543h5"><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><br clear="none"></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 dir="ltr"> <font face="Arial"> On Tuesday, December 24, 2013 10:28 PM, António P. P. Almeida <<a rel="nofollow" shape="rect" ymailto="mailto:appa@perusio.net" target="_blank" href="mailto:appa@perusio.net">appa@perusio.net</a>> wrote:<br clear="none"> </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" ymailto="mailto:iptablez@yahoo.com" target="_blank" href="mailto:iptablez@yahoo.com">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" ymailto="mailto:iptablez@yahoo.com" target="_blank" href="mailto:iptablez@yahoo.com">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" ymailto="mailto:nginx@nginx.org" target="_blank" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.nginx.org/mailman/listinfo/nginx">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" ymailto="mailto:nginx@nginx.org" target="_blank" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a><br clear="none"></blockquote></div><br clear="none"></div></div></div>
<br clear="none"><div>_______________________________________________<br clear="none">nginx mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:nginx@nginx.org" target="_blank" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></div>
<br clear="none"><br clear="none"></div> </div> </div> </div> </div></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
nginx mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:nginx@nginx.org" target="_blank" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a><br clear="none"></blockquote></div><br clear="none"></div></div></div><br><div class="yqt5226931623" id="yqt60368">_______________________________________________<br clear="none">nginx mailing list<br clear="none"><a shape="rect" ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">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></body></html>