[matomo-web] Enable gzip compression for JS files
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [matomo-web] Enable gzip compression for JS files
- Date: Mon, 11 May 2020 08:56:12 +0000 (UTC)
commit afa5034c93a4f81292feb93baa6cb817f4768529
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon May 11 10:55:57 2020 +0200
Enable gzip compression for JS files
nginx.conf | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/nginx.conf b/nginx.conf
index cb129f1..463eb92 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -18,6 +18,10 @@ http {
types_hash_max_size 2048;
server_tokens off;
+ gzip on;
+ gzip_types application/javascript;
+ gzip_comp_level 6;
+
upstream php-handler {
server localhost:9000;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]