Bypass cache if PHPSESSID exists

Kirill A. Korinsky kirill at korins.ky
Thu May 9 18:04:12 UTC 2024


On Thu, 09 May 2024 18:11:18 +0100,
Christos Chatzaras <chris at cretaforce.gr> wrote:
> 
> 		if ($http_cookie ~* "_mcnc|PHPSESSID") {
> 			set $no_cache "1";
> 		}
>

Try to use map instead if.

-- 
wbr, Kirill


More information about the nginx mailing list