Adding an exception for static IP address

Assuming you have a static IP address you can easly ignore the cache for your visits. Outside of the server block add the following (with your IP address):

geo $ip_cache_bypass {
        default         0;
        198.51.100.123  1;
}

Afterwards add the following to your PHP section (the one edited before) to make sure you won't see cached pages and your pages won't be cached for others to see.

fastcgi_cache_bypass $ip_cache_bypass;
fastcgi_no_cache $ip_cache_bypass;

Revision #2
Created Mon, Apr 13, 2020 10:06 AM by Lukas
Updated Mon, Apr 13, 2020 10:11 AM by Lukas