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
Posted at Nginx Forum: