maxicep
Active member
I think it is possible while add a custom mobile/desktop string (from user agent or special mobile cookie) to fastcgi_cache_key value.
I'm trying that
And so edit that:
fastcgi_cache_key $scheme$request_method$host$request_uri$mobile_request;
So, it should be cache seperately. But i don't know the xenforo's default mobile user agents while checking. If we put right mobile user-agents fully coming from xenforo, then it will be okay i think.
I'm trying that
Code:
map $http_user_agent $device_type {
default 'pc';
~(iPhone|Android|IEMobile|Balckberry) 'mobile';
}
And so edit that:
fastcgi_cache_key $scheme$request_method$host$request_uri$mobile_request;
So, it should be cache seperately. But i don't know the xenforo's default mobile user agents while checking. If we put right mobile user-agents fully coming from xenforo, then it will be okay i think.