title: How to know apache server deflate/gzip compression is enabled
body: <p>My Apache server admin claims that the server has deflate/gzip compression enabled.</p>
  
  <p>But when I use some standard code for introducing deflate/gzip compression in my .htaccess file, it seems there is no compression in files.</p>
  
  <p>I used the below lines in <code>.htaccess</code></p>
  
  <pre><code>AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
  &lt;FilesMatch "\\.(js|css|html|htm|php|xml)$"&gt;
    SetOutputFilter DEFLATE
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>I am in doubt if the server really has enabled deflate/gzip compression. When I call <code>phpinfo()</code> it shows me the following rows related to deflate/gzip:</p>
  
  <pre><code>Stream Filter support           zlib.inflate, zlib.deflate
  HTTP_ACCEPT_ENCODING            gzip, deflate
  _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
  _ENV["HTTP_ACCEPT_ENCODING"]    gzip, deflate
  </code></pre>
  
  <p>Do these lines show the server supports deflate/gzip compression or not?</p>
  
  <p>And if not how should I understand?</p>