title: Getting user agent value. Server side vs Client side?
body: <p>I need to pass user agent value into front end. </p>
  
  <p>I can get this value using <code>$_SERVER['HTTP_USER_AGENT']</code> and write it into front end.
  (Actually I will be using  <code>Mage::helper('core/http')-&gt;getHttpUserAgent()</code>, but I think it's just a magento helper to call above mentioned function.)</p>
  
  <p>Or I can use get <code>navigator.userAgent</code> with js on client side.</p>
  
  <p>Which better and why? My primary concern is speed.</p>
  
  <p>p.s. I understand that UA can be easily manipulated. We are not basing any serious functionality on the value, it's used as a secondary parameter.</p>