summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-03-04 18:52:35 -0600
committerChris Buechler <cmb@pfsense.org>2016-03-04 18:52:35 -0600
commit15c9c9215bd64f4f055159ae3fe45b38a9afad45 (patch)
treedfbcde27abdff2a7579d618e95e5e24f976ee135 /src/etc
parent4d13e55ffa8bcffa7886a9720f8f8d8c092eafc2 (diff)
downloadpfsense-15c9c9215bd64f4f055159ae3fe45b38a9afad45.zip
pfsense-15c9c9215bd64f4f055159ae3fe45b38a9afad45.tar.gz
Update nginx gzip_types. Remove text/html since it's redundant, and add a few others. Particularly useful, json, since status_monitoring.php uses it. Reduces load time on slow connections to about 1/4th of what it is without gzip on json. Ticket #5498
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/system.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index d8b1efb..8e7ac68 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -1313,7 +1313,7 @@ $nginx_config .= <<<EOD
client_max_body_size 200m;
gzip on;
- gzip_types text/html text/plain text/css text/javascript;
+ gzip_types text/plain text/css text/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
EOD;
OpenPOWER on IntegriCloud