Тоже вопрос на ту же тему, чтоб не плодить темы.

Есть код

set $no_cache 0;

if ($request_method = POST){set $no_cache 1;}
if ($http_host ~* success.html$){set $no_cache 1;}
if ($remote_addr ~* ^(192.168.0*)$){set $no_cache 1;}
        
# Не берется из кеша
fastcgi_cache_bypass $no_cache;

# Не сохраняется в кеш
fastcgi_no_cache $no_cache; 

Ни один if не срабатывает. Куда смотреть, копать?

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,294681,294690#msg-294690

_______________________________________________
nginx-ru mailing list -- nginx-ru@nginx.org
To unsubscribe send an email to nginx-ru-le...@nginx.org

Ответить