Welcome! Log In Create A New Profile

Advanced

Re: Cache vs expires time

Maxim Dounin
January 10, 2019 08:06AM
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 for static content. I can't use your example though because it will
> ignore those headers even for requests which shouldn't be cached, hence the
> $skip_cache variable check. Is there a way to tie checking a variable value
> to the ignore headers method?

Let me re-iterate:

> > Note well that it makes little to no sense to only ignore Expires
> > and Cache-Control on cached requests, since these headers are only
> > used by nginx for caching. If caching is not used, these headers
> > are ignored anyway. See http://nginx.org/r/proxy_ignore_headers
> > for details.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Cache vs expires time

Andrei January 06, 2019 08:08AM

Re: Cache vs expires time

Maxim Dounin January 06, 2019 09:48PM

Re: Cache vs expires time

Andrei January 08, 2019 02:46AM

Re: Cache vs expires time

Andrei January 08, 2019 02:56AM

Re: Cache vs expires time

Maxim Dounin January 09, 2019 12:02PM

Re: Cache vs expires time

Andrei January 10, 2019 03:34AM

Re: Cache vs expires time

Maxim Dounin January 10, 2019 08:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 252
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