Re: Cache vs expires time

2019-01-10 Thread Maxim Dounin
Hello! On Thu, Jan 10, 2019 at 10:32:28AM +0200, Andrei wrote: > Thanks again for the pointers. I have caching enabled, and the purpose of > this is to set different expire times based on the request (if it's > cacheable). So I have 3 locations: 1 for frontpage, 1 for dynamic pages and > another

Re: Cache vs expires time

2019-01-10 Thread Andrei
Hello! Thanks again for the pointers. I have caching enabled, and the purpose of this is to set different expire times based on the request (if it's cacheable). So I have 3 locations: 1 for frontpage, 1 for dynamic pages and another for static content. I can't use your example though because it wi

Re: Cache vs expires time

2019-01-09 Thread Maxim Dounin
Hello! On Tue, Jan 08, 2019 at 09:55:30AM +0200, Andrei wrote: > Is there a way to conditionally use proxy_ignore_headers? I'm trying to > only ignore headers for requests which have $skip_cache = 0 for example If you want different proxy_ignore_headers settings for different requests, you have

Re: Cache vs expires time

2019-01-07 Thread Andrei
Is there a way to conditionally use proxy_ignore_headers? I'm trying to only ignore headers for requests which have $skip_cache = 0 for example On Tue, Jan 8, 2019 at 9:45 AM Andrei wrote: > Thanks Maxim!! > > On Mon, Jan 7, 2019 at 4:47 AM Maxim Dounin wrote: > >> Hello! >> >> On Sun, Jan 06,

Re: Cache vs expires time

2019-01-07 Thread Andrei
Thanks Maxim!! On Mon, Jan 7, 2019 at 4:47 AM Maxim Dounin wrote: > Hello! > > On Sun, Jan 06, 2019 at 03:07:00PM +0200, Andrei wrote: > > > I was wondering how can I force cache of a $request_uri (/abc) for 10 > > minutes, but set the browser expires headers for 5 minutes? > > The most basic o

Re: Cache vs expires time

2019-01-06 Thread Maxim Dounin
Hello! On Sun, Jan 06, 2019 at 03:07:00PM +0200, Andrei wrote: > I was wondering how can I force cache of a $request_uri (/abc) for 10 > minutes, but set the browser expires headers for 5 minutes? The most basic options are: - You can set Expires from your backend as desired for browser cac

Cache vs expires time

2019-01-06 Thread Andrei
Hello, I was wondering how can I force cache of a $request_uri (/abc) for 10 minutes, but set the browser expires headers for 5 minutes? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx