Hi! Update. I have solved as follows: if ( $http_user_agent !~* (Wget|Googlebot|bingbot|YandexBot|msnbot) ) { set $not_bot "1"; } location ~* \.(html)$ { proxy_next_upstream http_502 http_504 error timeout invalid_header; proxy_cache cache_one; proxy_ignore_headers Set-Cookie Cache-Control Expires; proxy_buffering on; proxy_buffer_size 8k; proxby opechancano - How to...
Hi All: How can I caching a location/files just for specific user-agents? I mean something like: if ($http_user_agent ~ (googlebot|bingbot|badbot) ) { location ~* \.(html)$ { proxy_next_upstream http_502 http_504 error timeout invalid_header; proxy_cache cache_one; proxy_ignore_headers Set-Cookie Cache-Control Expires;by opechancano - How to...