<div dir="ltr"><div dir="ltr">Hi Peter,<input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"1","compose-window":{"secure":false}}"><div><br></div><div>Thanks for help, can you direct me to some tutorial to help me do that ? I am new to Lua .</div></div><br><div class="gmail_quote" style=""><div dir="ltr">On Mon, Jan 14, 2019 at 3:21 AM Peter Booth via nginx <<a href="mailto:nginx@nginx.org">nginx@nginx.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If you use the openresty nginx distribution then you can write a few lines of Lua to implement your custom logic.<br>
<br>
Sent from my iPhone<br>
<br>
> On Jan 13, 2019, at 9:13 AM, shahzaib mushtaq <<a href="mailto:shahzaib.cb@gmail.com" target="_blank">shahzaib.cb@gmail.com</a>> wrote:<br>
> <br>
> Hi,<br>
> <br>
> We've a location like /school for which we want to set browser cache lifetime as 'current month'. Suppose /school is accessed on 10th January, its cache should be valid until end of January not 10th February and if accessed on 25th February its validity must be until the end of February month.<br>
> <br>
> Is it possible in Nginx ?<br>
> <br>
> Regards.<br>
> Shahzaib<br>
> _______________________________________________<br>
> nginx mailing list<br>
> <a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div></div>