title: mod_pagespeed image compression with primefaces
body: <p>Why does mod_pagespeed compress images rendered using <code>&lt;h:graphicImage&gt;</code> but not images using <code>&lt;img&gt;</code>.</p>
  
  <p>For example:
  Doesn't get compressed:</p>
  
  <pre><code>&lt;img src="/resources/img/logo.png" alt="Logo" height="50" width="230" /&gt;
  </code></pre>
  
  <p>This does get compressed:</p>
  
  <pre><code>&lt;h:graphicImage library="img" name="logo.png" alt="Logo"  height="50" width="230" /&gt;
  </code></pre>