Apache deflate javascript compress ratio 1.00x
<p>If I ran gzip in CLI, I can get a good compression ratio:</p>

<pre><code>bundle.js:     75.3% -- replaced with bundle.js.gz
</code></pre>

<p>But in Apache, even I set deflate, it did compress, but with same file size. Below is my Apache config:</p>

<pre><code>LoadModule deflate_module libexec/apache2/mod_deflate.so
&lt;IfModule deflate_module&gt;
  DeflateCompressionLevel 9
  AddOutputFilterByType DEFLATE application/javascript text/plain text/css
  CustomLog /var/log/deflate_log DEFLATE
&lt;/IfModule&gt;
</code></pre>

<p>Below is the response:</p>

<pre><code>ETag    "8342b-53dc33d01d2c0-gzip"
Server  Apache/2.4.23 (Unix)
Content-Type    application/javascript
Last-Modified   Sat, 01 Oct 2016 01:00:35 GMT
Date    Sun, 02 Oct 2016 01:14:20 GMT
Connection  Keep-Alive
Vary    Accept-Encoding
Accept-Ranges   bytes
Keep-Alive  timeout=5, max=98
Content-Encoding    gzip
Transfer-Encoding   Identity
</code></pre>

<p>The network transfer size is same as before, and the ratio is 1.00x. I narrowed it down to only js get not compressed, instead css get good compression ratio of 6.22x. Is there something wrong with the js file?</p>