Welcome! Log In Create A New Profile

Advanced

gzip working for 443 but not 80 in same listener?

April 12, 2016 04:48PM
I added port 80 in my listener.
# HTTPS server
server {
listen 80;
listen 443 ssl;

Gzip still works on 443, but css/js are not getting gzipped in port 80.

My nginx.conf has
gzip on;
gzip_vary on;
gzip_min_length 500;
gzip_buffers 4 32k;
gzip_comp_level 6;
# gzip_proxied expired no-cache no-store private auth;
gzip_proxied any;
gzip_types text/plain text/css text/xml text/javascript application/json application/javascript application/x-javascript application/xml application/xml+rss;
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_disable "MSIE [1-6]\.";

I tried adding this but it didn't seem to help
# it wasn't compressing for port 80
gzip_http_version 1.0;


I can also see if I do
curl --header "Accept-Encoding: gzip,deflate,sdch" -sI http://wwwtest.vishay.com/scripts/6a1ffc5abe3087be4ead5451c1651f74ee0672f3/scripts/satellite-56dd434664746d0550000142.js

vs

curl --header "Accept-Encoding: gzip,deflate,sdch" -sI https://wwwtest.vishay.com/scripts/6a1ffc5abe3087be4ead5451c1651f74ee0672f3/scripts/satellite-56dd434664746d0550000142.js

only the https shows
Content-Encoding: gzip

What am I missing??

Thanks,
Lee
Subject Author Posted

gzip working for 443 but not 80 in same listener?

lfisher April 12, 2016 04:48PM

Re: gzip working for 443 but not 80 in same listener?

Валентин Бартенев April 12, 2016 05:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 235
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