Welcome! Log In Create A New Profile

Advanced

Re: кешировать только ответы где есть определённый Set-Cookie

July 08, 2022 02:02PM
Тоже вопрос на ту же тему, чтоб не плодить темы.

Есть код

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

VovansystemS July 07, 2022 08:02AM

Re: кешировать только ответы где есть определённый Set-Cookie

Maxim Dounin July 07, 2022 10:46PM

Re: кешировать только ответы где есть определённый Set-Cookie

milov July 08, 2022 02:02PM

Re: кешировать только ответы где есть определённый Set-Cookie

VovansystemS July 09, 2022 04:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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