Welcome! Log In Create A New Profile

Advanced

Re: RE: RE: Gzip not compressing

September 07, 2019 04:20PM
Hi, RR

Thank you so much for giving attention.

My conf page gzip section looks like this

"

# Gzip Settings
##

gzip on;
gzip_disable "msie6";

gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_min_length 256;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontob$fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon;


"

When i add your suggestion:


"

gzip on;
gzip_types text/html text/plain text/xml text/css application/javascript application/json;


"

Should I delete any other line?


Then you also mention:

"

in http {} block (and reloading nginx) should be enough to enable gzip (obviously add whatever other types you need like svg / fonts).


"

I am not sure what to do with this

"

http {} block.

"

I know that after making changes i should always give

"

sudo nginx -t
sudo systemctl restart nginx

"


Thank you once again :)
Subject Author Posted

Gzip not compressing

Anand Arun September 07, 2019 09:30AM

RE: Gzip not compressing

Reinis Rozitis September 07, 2019 10:10AM

Re: RE: Gzip not compressing

arunkiji September 07, 2019 11:53AM

RE: RE: Gzip not compressing

Reinis Rozitis September 07, 2019 12:58PM

Re: RE: RE: Gzip not compressing

arunkiji September 07, 2019 04:20PM

Re: Gzip not compressing

arunkiji September 12, 2019 09:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready