Would it be possible to make this extension add a custom response header, like X-MobileFrontend? This would make it easier for caching reverse proxies like Varnish, or the Nginx FastCGI module's caching feature, to tell apart a mobile response from a desktop response, when using the extension's own auto-detection based on User-Agent.