Title: Enable compression issue
Last modified: May 17, 2017

---

# Enable compression issue

 *  Resolved [Z W](https://wordpress.org/support/users/willxiao0790/)
 * (@willxiao0790)
 * [9 years ago](https://wordpress.org/support/topic/enable-compression-issue/)
 * Hi Daan,
 * Thanks for creating this very good plugin. After installation, it seems running
   properly. I can see Analytics js is created and loading from our local server.
 * Although the “Leverage browser caching” issue is gone in Google SpeedTest Inights
   result, now it comes up with “Enable compression” issue so basically no SpeedTest
   points gained and even dropped one point due to this issue.
 * Compressing resources with gzip or deflate can reduce the number of bytes sent
   over the network.
    Enable compression for the following resources to reduce their
   transfer size by 17.2KiB (58% reduction). Compressing [https://mywebsite.com/…host-analyticsjs-local/cache/local-ga.js](https://mywebsite.com/…host-analyticsjs-local/cache/local-ga.js)
   could save 17.2KiB (58% reduction).
 * I have W3TC installed, and GZIP running properly. This local-ga.js is the only
   file not gzipped?
 * Could you show me how to fix this?
 * Look forward to your response.
 * Thanks,
    WZ

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [9 years ago](https://wordpress.org/support/topic/enable-compression-issue/#post-9142875)
 * Try emptying all caches. If that doesn’t work, check if gzip is enabled for javascript
   files…
 *  Thread Starter [Z W](https://wordpress.org/support/users/willxiao0790/)
 * (@willxiao0790)
 * [9 years ago](https://wordpress.org/support/topic/enable-compression-issue/#post-9143326)
 * Thanks for your prompt response.
 * I forgot to mention that I did empty caches and tried 3 times, but still the 
   same issue.
 * Gzip must’ve already enabled for Javascript files, otherwise many other Javascript
   files of theme and plugins would be reported the same “Enable Compression” in
   SpeedTest result.
 * Thanks
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [9 years ago](https://wordpress.org/support/topic/enable-compression-issue/#post-9154095)
 * I honestly don’t know. Your server does the Gzip-compression. This has nothing
   to do with WordPress or this plugin. Your server should pick up the file and 
   compress it, before the requested data will be served.
 * Have you contacted your host about this?
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/enable-compression-issue/#post-9312612)
 * I recently found out about the gzip minimum length setting. Perhaps your server
   only gzips files above a certain size and the local-ga.js file is too small? 
   Could you check that out?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Enable compression issue’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/enable-compression-issue/#post-9312612)
 * Status: resolved