Set browser cache to current month!
shahzaib mushtaq
shahzaib.cb at gmail.com
Sun Jan 13 15:12:56 UTC 2019
Currently I'm using these lines to configure http caching within my Nginx:
location /schools { expires 2d; add_header Cache-Control public; ... }
On Sun, Jan 13, 2019 at 7:57 PM Richard Demeny <richarddemeny at gmail.com>
wrote:
> browser cache = client-side cache.
>
> nginx cache = server-side cache.
>
> Set cache expiry flag ?
>
> On Sunday, January 13, 2019, 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190113/86f999ee/attachment.html>
More information about the nginx
mailing list