Welcome! Log In Create A New Profile

Advanced

Re: Serve *only* from cache for particular user-agents

February 21, 2014 01:13PM
ajay Wrote:
-------------------------------------------------------
> you can use http://nginx.org/en/docs/http/ngx_http_map_module.html
>
> Ex:
>
> map $http_user_agent $mobile {
> ~* msn-bot 'http://devnull';
>
> default 'http://productionrupal';
>
> }

Actually that worked perfectly! Then I can do it entirely without the 'if'.

Thanks Ajay and Maxim. I appreciate all the help!
-R
Subject Author Posted

Serve *only* from cache for particular user-agents

rge3 February 21, 2014 10:25AM

Re: Serve *only* from cache for particular user-agents

Maxim Dounin February 21, 2014 10:48AM

Re: Serve *only* from cache for particular user-agents

rge3 February 21, 2014 11:46AM

Re: Serve *only* from cache for particular user-agents

ajay February 21, 2014 12:00PM

Re: Serve *only* from cache for particular user-agents

rge3 February 21, 2014 01:13PM

Re: Serve *only* from cache for particular user-agents

Maxim Dounin February 21, 2014 12:20PM

Re: Serve *only* from cache for particular user-agents

Darren Pilgrim February 21, 2014 05:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready