How to detect version when Caching Mobile is true in WP plugin

#1
Hi
If I enable Cache Mobile in the Wordpress plugin how can I detect which version is being served in my template? Is there a header value or some other global variable that I can use?

Thanks,
Soeren
 

Tishu

Well-Known Member
#4
The best way is by using user-agent. You can "catch" users and redirect them to the mobile version (if you have it on subdomain, like m.domain.com).
 
#5
The best way is by using user-agent. You can "catch" users and redirect them to the mobile version (if you have it on subdomain, like m.domain.com).
Thank you, I will check what headers are available once the caching is enabled with my hosting provider (I though maybe some custom headers were added - this is how it's typically done with Varnish).
 
Top