From dff69933c4247092eb772ed162bea5aa1efe013f Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 16 Feb 2023 15:42:09 +0000 Subject: [PATCH] Update gzip_types --- nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.conf b/nginx.conf index e4ea78a..1a9df06 100644 --- a/nginx.conf +++ b/nginx.conf @@ -18,7 +18,9 @@ http { access_log /var/log/nginx/access.log main; sendfile on; keepalive_timeout 65; + gzip_static on; gzip on; + gzip_types text/html text/css application/json text/javascript text/plain font/ttf; server { listen 80; @@ -35,6 +37,7 @@ http { index index.php; try_files $uri $uri/ $uri/index.php &uri/index.html =404; break; + expire 4320; } location ~ \.php$ {