Hey,
One of our client sites motionarray.com is reporting that 3 files aren’t being compressed.
https://motionarray.com/assets/site/js/dist/head.js https://motionarray.com/assets/site/css/dist/all.css https://motionarray.com/assets/site/js/dist/all.js
GZip is enabled on our server and we get a grade D for compression through YSlow so clearly some things are being compressed. I’m just stumped as to why these 3 files specifically aren’t being.
Our nginx.conf contains this:
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css;
Has anyone else experienced this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Have you restarted nginx after making the changes to the configuration file?
sudo service nginx restart
if I download the file and compress it it compresses fine with nginx
here is my config
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_min_length 500;
gzip_buffers 4 32k;
gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml image/svg;
gzip_vary on;
its basically the same as yours but we get different results.
My Server Result on Your File all.css
Yours all.css
it could be caused by the file size not meeting your requirements (default gzip reqs.)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.