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$ {