Welcome! Log In Create A New Profile

Advanced

fastcgi_cache / proxy_cache -> Mobile / Desktop

October 05, 2015 02:47PM
Hi,

Actually, I use fastcgi_cache / proxy_cache but, sometimes, I have problem with how this cache is read... causing confusion for some sites when open mobile ou desktop version.

In sites/systems, there are the check for mobile detect, common like http://detectmobilebrowsers.com
but, for unknow reason, this information came wrong.. and mobile users view desktop user content...

this is not always... is aleatory...

I already try everything I know... I put rules for user_agent
### Map Mobile
map $http_user_agent $iphone_request {
default 0;
~*android|ip(hone|od)|windows\s+(?:ce|phone) 1;
~*symbian|sonyericsson|samsung|lg|blackberry 1;
~*mobile 1;
}

with this, I put cache_key the information about this variable....
BUT... still bugged something...

What more I can to do ?
Subject Author Posted

fastcgi_cache / proxy_cache -> Mobile / Desktop

ariel_esp October 05, 2015 02:47PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 248
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready