<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Hi!</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">I think you can consider the ngx_lua, you can achieve your purpose easily by this. :)</div> <br> <div id="bloop_sign_1504967390568183040" class="bloop_sign"></div> <br><p class="airmail_on">On 9 September 2017 at 21:36:06, Ish Sookun (<a href="mailto:ish@lsl.digital">ish@lsl.digital</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Hello,
<br>
<br>I need to write a config that will set the "Cache-Control" value of a
<br>resource based on the age of the latter returned by the origin server.
<br>E.g if a resource is older than X hours then the Cache-Control should
<br>have a specific value.
<br>
<br>Anybody ever done that?
<br>
<br>I am hoping to be able to find something by starting with the
<br>"Last-Modified" value that is returned by the origin server.
<br>
<br>Regards,
<br>
<br>Ish Sookun
<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">http://mailman.nginx.org/mailman/listinfo/nginx</a>
<br></div></div></span></blockquote></body></html>