nginx caching per user agent
- by Tuinslak
I'm currently using nginx as reverse proxy with caching enabled.
However, the main site has two different layouts, depending on the user-agent (mobile or not).
I've tried something similar to this:
# mobile users
if ($http_user_agent ~* '(iPhone|iPod|mobile|Android|2.0\…