Welcome! Log In Create A New Profile

Advanced

Re: gzip_types not working as expected

Grant
March 14, 2015 09:32AM
>>> gzip is not working on my piwik.js file according to Google at
>>> developers.google.com/speed/pagespeed/insights. It's working fine on
>>> my CSS file. How can I troubleshoot this?
>>>
>>> gzip on;
>>> gzip_disable msie6;
>>> gzip_types text/javascript application/x-javascript text/css text/plain;
>
>
> You probably miss application/javascript in your list, or the size of your
> javascript in question is less then the (default ?) minimum size for gizp to
> be done, check the official documentation for this.
>
> Anyway, an easy way to check if you are missing a mime type on your gzip
> list is to open your page with firebug (or similar) enabled and check the
> type and size of the particular resource.


Just needed to add application/javascript. Thanks guys.

- Grant

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

gzip_types not working as expected

Grant March 09, 2015 11:54AM

Re: gzip_types not working as expected

Grant March 11, 2015 08:12AM

Re: gzip_types not working as expected

itpp2012 March 11, 2015 09:10AM

Re: gzip_types not working as expected

Frederik Nosi March 11, 2015 09:12AM

Re: gzip_types not working as expected

Grant March 14, 2015 09:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready