Welcome! Log In Create A New Profile

Advanced

Re: Set browser cache to current month!

January 13, 2019 10:14AM
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@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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Set browser cache to current month!

shahzaib1232 January 13, 2019 09:14AM

Re: Set browser cache to current month!

Richard Demeny January 13, 2019 09:58AM

Re: Set browser cache to current month!

shahzaib1232 January 13, 2019 10:14AM

Re: Set browser cache to current month!

Peter Booth via nginx January 13, 2019 05:22PM

Re: Set browser cache to current month!

shahzaib1232 January 14, 2019 01:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready