Title: GZip Compression for autoptimize javascript file
Last modified: September 17, 2018

---

# GZip Compression for autoptimize javascript file

 *  Resolved [jenja](https://wordpress.org/support/users/jenja/)
 * (@jenja)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/gzip-compression-for-autoptimize-javascript-file/)
 * Hi,
 * I’m running AutOptimize 2.3.4 width WordPress 4.9.8 and I’ve got an htaccess 
   file activating gzip compression (gzip and caching code from her [https://andreashecht-blog.de/4183/](https://andreashecht-blog.de/4183/)).
 * But when I run a GT Metrix test I receive the big error
    ‘Compressing /cache/
   autoptimize/js/autoptimize_448deccaad3844a7442fa6914e65c42a.js could save 294.0KiB(
   70% reduction)’, which takes my whole page speed score down to 77%. All other
   scores except for the minify javascript option that referes to the same file 
   are 99-100%.
 * I’ve been searching for the option you explained in your faq (´autoptimize_filter_cache_create_static_gzip’),
   but I do not know where and how to apply it. Also the Plugin AutOptimize GZip
   Master (from Github) doesn’t change anything
 * **Can you help? **
 * Not checking ‘save as static files’ brings me to 100% at GTMetrix, but lets me
   loose several website functions including the navigation bar.. If I then exlude
   the themes app.min.js file from compressions and I force javascript loading into
   the header, the website works again, but the Page Speed Scroe moves down to 81%,
   including a longer loading period than before..
 * Best regards
 * Jen

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/gzip-compression-for-autoptimize-javascript-file/#post-10696727)
 * can you share your site’s URL so I can have a look around Jen?
 * frank
 *  Thread Starter [jenja](https://wordpress.org/support/users/jenja/)
 * (@jenja)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/gzip-compression-for-autoptimize-javascript-file/#post-10696815)
 * Thanks for your fast reply. Is there an option to post the link in a non public
   way?
    I ask because it’s a customer’s website on a customer’s domain. I’d promise
   to post every detail of the solution here 😉
 * Jen
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/gzip-compression-for-autoptimize-javascript-file/#post-10697100)
 * sure; you can mail me at futtta-at-gmail-dot-com 🙂
 *  Thread Starter [jenja](https://wordpress.org/support/users/jenja/)
 * (@jenja)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/gzip-compression-for-autoptimize-javascript-file/#post-10712049)
 * Hi Frank,
 * following your estimation that my problems were caused by server settings (a 
   probably not installed / activated mod_expires.c module) I asked the webhoster
   for help. The hoster 1and1 finally moved the website to another server and the
   problem was solved. This might be interesting for others who have websites hosted
   at 1und1 on the basis of older contracts, like the one of my customizer from 
   the year 2014.
 * Thanks a lot for your fast support!
 * Jen

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

The topic ‘GZip Compression for autoptimize javascript file’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [gt-metrix](https://wordpress.org/support/topic-tag/gt-metrix/)
 * [gzip](https://wordpress.org/support/topic-tag/gzip/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 4 replies
 * 2 participants
 * Last reply from: [jenja](https://wordpress.org/support/users/jenja/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/gzip-compression-for-autoptimize-javascript-file/#post-10712049)
 * Status: resolved