From 0c95f8c595e0f7ed7b823c3c12f65d50134ced71 Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Fri, 2 Oct 2015 13:28:05 +0800 Subject: [PATCH] txt is actually already compressed --- nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 1570489..c934895 100644 --- a/nginx.conf +++ b/nginx.conf @@ -26,10 +26,11 @@ http { } location ~ \.(svg|txt)$ { - gzip_static always; + add_header Content-Encoding gzip; + gzip off; } - location ~* \.(svg|css|woff|js)$ { + location ~* \.(svg|css|js)$ { expires 7d; }