Welcome! Log In Create A New Profile

Advanced

proxy_cache_path 'inactive' vs http cache-control / expires headers?

J.R.
April 02, 2020 12:32PM
I've been doing some experimenting with nginx's proxy caching and
slowly working the kinks out.

From what I read, the cache-control & expires headers take precedence
over the 'proxy_cache_valid' setting, which is great as certain pages
are valid for several hours at a time.

However, I am noticing still a high amount of cache misses... Upon
further investigation I'm thinking (haven't tested it yet) that the
'proxy_cache_path' inactive setting (currently at its default of 10m)
is taking precedence over the above cache-control settings...

Is there any way to tie the 'inactive' time to the cache-control
header expiration time so that pages that are cached in a certain
time-window are always kept and not deleted until after the header
expiration time?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_cache_path 'inactive' vs http cache-control / expires headers?

J.R. April 02, 2020 12:32PM

RE: proxy_cache_path 'inactive' vs http cache-control / expires headers?

Reinis Rozitis April 02, 2020 01:02PM

Re: proxy_cache_path 'inactive' vs http cache-control / expires headers?

roger_bc April 03, 2020 11:34AM

Re: proxy_cache_path 'inactive' vs http cache-control / expires headers?

Maxim Dounin April 03, 2020 12:28PM

Re: proxy_cache_path 'inactive' vs http cache-control / expires headers?

roger_bc April 03, 2020 11:26PM

Re: proxy_cache_path 'inactive' vs http cache-control / expires headers?

Maxim Dounin April 05, 2020 08:12AM

Re: proxy_cache_path 'inactive' vs http cache-control / expires headers?

J.R. April 02, 2020 01:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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