Bypass cache if PHPSESSID exists

2024-05-09 Thread Christos Chatzaras
Hello, I want to bypass cache if PHPSESSID exists. I have this configuration: http { fastcgi_cache_path /tmpfs/cache levels=1:2 keys_zone=fastcgicache:10m inactive=10m max_size=1024m; fastcgi_cache_key $device_type$scheme$request_method$host$request_uri; fastcgi_cache_mi

Re: Bypass cache if PHPSESSID exists

2024-05-09 Thread Kirill A . Korinsky
On Thu, 09 May 2024 18:11:18 +0100, Christos Chatzaras wrote: > > if ($http_cookie ~* "_mcnc|PHPSESSID") { > set $no_cache "1"; > } > Try to use map instead if. -- wbr, Kirill ___ nginx mailing list n