<![CDATA[ Nginx Caching - My Forums]]> https://forums.modx.com/thread/?thread=104559 <![CDATA[Nginx Caching]]> https://forums.modx.com/thread/104559/nginx-caching#dis-post-562379
My only problem is that, it's interfering with the manager, despite setting directives to not cache the manager.

The problem I experience is that, once I've logged out, if I try to login again, the manager tells me that my session has expired and it presents me with a login modal, but despite re-authenticating, I can never get rid past this point (unless I clear the nginx cache).

Obviously something is getting cached, which is mucking with the session, but I don't know how to overcome this. I've tried so many options...

My current directives are:

if ($request_uri ~* "/manager/") {
    set $skip_cache 1;
}


and

location /manager {
    set $skip_cache 1;
    add_header Cache-Control no-cache;
}


If anyone has any idea what directives to use, I really appreciate your sharing your learnings smiley]]>
supanick Oct 29, 2018, 09:28 AM https://forums.modx.com/thread/104559/nginx-caching#dis-post-562379
<![CDATA[Re: Nginx Caching]]> https://forums.modx.com/thread/104559/nginx-caching#dis-post-563564 markh Jan 14, 2019, 07:44 PM https://forums.modx.com/thread/104559/nginx-caching#dis-post-563564 <![CDATA[Re: Nginx Caching]]> https://forums.modx.com/thread/104559/nginx-caching#dis-post-563522 geforester Jan 11, 2019, 06:14 AM https://forums.modx.com/thread/104559/nginx-caching#dis-post-563522 <![CDATA[Re: Nginx Caching (Best Answer)]]> https://forums.modx.com/thread/104559/nginx-caching#dis-post-562380
That, combined with the memcached caching means the sites are plenty fast.]]>
supanick Oct 29, 2018, 10:55 AM https://forums.modx.com/thread/104559/nginx-caching#dis-post-562380