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

Reinis Rozitis r at roze.lv
Thu Apr 2 17:00:58 UTC 2020


> 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?

You can just set the inactive time longer than your possible maximum expire time for the objects  then the cache manager won't purge the cache files even the object is still valid but not accessed.

rr



More information about the nginx mailing list