Hello
I use Reverse proxy with cache on my wordpress website.
https://i.ibb.co/3fdrhDV/quan6677.png
However, it does cache even my admin dashboard. I think it's impossible to not to cache on logged in users. However, Are there configuration line to ignore to cache on url parameter such as /wp-admin/?
The following is the default config code:
#PROXY-START/
location ^~ /
{
proxy_pass https://145.xxx.71.xx;
proxy_set_header Host xxxxxxx.me;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
#Persistent connection related configuration
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
set $static_fileWYrLAHSi 0;
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
{
set $static_fileWYrLAHSi 1;
expires 12h;
}
if ( $static_fileWYrLAHSi = 0 )
{
add_header Cache-Control no-cache;
}
}
#PROXY-END/
Thanks