Set browser cache to current month!

shahzaib mushtaq shahzaib.cb at gmail.com
Mon Jan 14 06:32:44 UTC 2019


Hi Peter,

Thanks for help, can you direct me to some tutorial to help me do that ? I
am new to Lua .

On Mon, Jan 14, 2019 at 3:21 AM Peter Booth via nginx <nginx at nginx.org>
wrote:

> If you use the openresty nginx distribution then you can write a few lines
> of Lua to implement your custom logic.
>
> Sent from my iPhone
>
> > On Jan 13, 2019, at 9:13 AM, shahzaib mushtaq <shahzaib.cb at gmail.com>
> wrote:
> >
> > Hi,
> >
> > 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.
> >
> > Is it possible in Nginx ?
> >
> > Regards.
> > Shahzaib
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190114/99cd7b3a/attachment.html>


More information about the nginx mailing list