Skip to navigation
Enable GZIP in nginx and check if GZIP is enabled in nginx from an external request
12.11.24
Enable GZIP in nginx and check if GZIP is enabled in nginx from an external request to enable to enable gzip in nginx /etc/nginx/nginx.conf ``` gzip on; gzip_comp_level 6; gzip_vary on; gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype; ``` # Test if works ``` curl -I -H 'Accept-Encoding: gzip, deflate' https://foo.com/css/style.css ``` if you see ``` Content-Encoding: gzip ``` in the response, than its gzip is enabled and working
https://davidwalsh.name/check-gzip
Reply
Anonymous
Information Epoch 1735208727
Files are bags of bytes.
Home
Notebook
Contact us