Untitled diff

Created Diff never expires
6 removals
24 lines
0 additions
18 lines
### Start FastCGI Cache ################
### Start FastCGI Cache ################
map $http_user_agent $mobile_request {
default 0;
~*android|ip(hone|od)|windows\s+(?:ce|phone) 1;
~*symbian|sonyericsson|samsung|lg|blackberry 1;
~*mobile 1;
}
map $http_cookie $nocachecookie {
map $http_cookie $nocachecookie {
default 0;
default 0;
~xf_fbUid 1;
~xf_fbUid 1;
~xf_user 1;
~xf_user 1;
~xf_logged_in 1;
~xf_logged_in 1;
}
}
map $request_uri $nocacheuri {
map $request_uri $nocacheuri {
default 0;
default 0;
~^/register 1;
~^/register 1;
~^/login 1;
~^/login 1;
~^/validate-field 1;
~^/validate-field 1;
~^/captcha 1;
~^/captcha 1;
~^/lost-password 1;
~^/lost-password 1;
~^/two-step 1;
~^/two-step 1;
}
}
fastcgi_cache_path /tmp/nginx_fastcgi_cache levels=1:2 keys_zone=fastcgicache:200m inactive=30m;
fastcgi_cache_path /tmp/nginx_fastcgi_cache levels=1:2 keys_zone=fastcgicache:200m inactive=30m;
### End FastCGI Cache ################
### End FastCGI Cache ################