From c9bbc0e43eb64b3c0fba3247b0ab65c04a385f29 Mon Sep 17 00:00:00 2001 From: Antoine Bluchet Date: Tue, 3 Dec 2024 19:23:27 +0100 Subject: [PATCH 1/4] gzip assets and wasm --- php-web4/nginx/nginx.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/php-web4/nginx/nginx.conf b/php-web4/nginx/nginx.conf index f22955c..702a7be 100644 --- a/php-web4/nginx/nginx.conf +++ b/php-web4/nginx/nginx.conf @@ -49,14 +49,13 @@ http { # Gzip Settings ## -# gzip on; - - # gzip_vary on; + gzip on; + gzip_vary on; # gzip_proxied any; # gzip_comp_level 6; # gzip_buffers 16 8k; # gzip_http_version 1.1; - # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/wasm; ## # Virtual Host Configs From 9610954d6fcecd2a0969536e7c2edbd9dc95b752 Mon Sep 17 00:00:00 2001 From: Antoine Bluchet Date: Thu, 5 Dec 2024 10:44:12 +0100 Subject: [PATCH 2/4] use gzip_gstatic --- php-web4/nginx/nginx.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/php-web4/nginx/nginx.conf b/php-web4/nginx/nginx.conf index 702a7be..999f38a 100644 --- a/php-web4/nginx/nginx.conf +++ b/php-web4/nginx/nginx.conf @@ -49,13 +49,14 @@ http { # Gzip Settings ## - gzip on; - gzip_vary on; + # gzip on; + # gzip_vary on; # gzip_proxied any; # gzip_comp_level 6; # gzip_buffers 16 8k; # gzip_http_version 1.1; - gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/wasm; + # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/wasm; + gzip_static on; ## # Virtual Host Configs From 6447c4038ddcbee025dc2330ff1928816097553c Mon Sep 17 00:00:00 2001 From: Antoine Bluchet Date: Thu, 5 Dec 2024 11:31:36 +0100 Subject: [PATCH 3/4] Update php-web4/nginx/nginx.conf --- php-web4/nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-web4/nginx/nginx.conf b/php-web4/nginx/nginx.conf index 999f38a..35383c4 100644 --- a/php-web4/nginx/nginx.conf +++ b/php-web4/nginx/nginx.conf @@ -55,7 +55,7 @@ http { # gzip_comp_level 6; # gzip_buffers 16 8k; # gzip_http_version 1.1; - # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/wasm; + # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; gzip_static on; ## From d22fc29b82528c2593da0063fe7fb16e71440f36 Mon Sep 17 00:00:00 2001 From: Antoine Bluchet Date: Thu, 5 Dec 2024 11:31:42 +0100 Subject: [PATCH 4/4] Update php-web4/nginx/nginx.conf --- php-web4/nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-web4/nginx/nginx.conf b/php-web4/nginx/nginx.conf index 35383c4..d1243d1 100644 --- a/php-web4/nginx/nginx.conf +++ b/php-web4/nginx/nginx.conf @@ -49,7 +49,7 @@ http { # Gzip Settings ## - # gzip on; +# gzip on; # gzip_vary on; # gzip_proxied any; # gzip_comp_level 6;