Welcome! Log In Create A New Profile

Advanced

set $no_cache 0 не работает.

August 03, 2022 10:24AM
Есть код

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 не срабатывает, т.е. сохраняет в кеш и берёт из кеша. Куда смотреть, копать?
Subject Author Posted

set $no_cache 0 не работает.

milov August 03, 2022 10:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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