Nginx FastCGI Cache

Hello,

How I can bypass Nginx FastCGI Cache for my IP?

I added IP but not working.

	# Cache bypass
	map $http_cookie $no_cache {
		default              0;
		~SESS                1;
		~wordpress_logged_in 1;
		~admin 1;
		~10.10.0.0       1;
		~123.12.1.1         1;
	}

Checks for cookie name not ip adress

Probally need tomato an other var with ip adress.

Please any example

This option has worked for me:

    if ($remote_addr ~* "70.80.30.8|12.35.09.1|10.10.0..*") {
        set $no_cache 1;
    }
1 Like