[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#914388: Add gzip compression for json mimetype



Package: apache2
Version: 2.4.25
Severity: minor
Tags: patch

Web services get often data in JSON format. The size can be important
but is compressed efficiently because it's text.
So it would be nice to enable the compression with mod_deflate:

--- /etc/apache2/mods-available/deflate.conf	2017-09-19
20:56:09.000000000 +0200
+++ deflate.conf	2018-11-22 22:10:54.550445644 +0100
@@ -8,6 +8,7 @@
 		AddOutputFilterByType DEFLATE application/x-javascript
application/javascript application/ecmascript
 		AddOutputFilterByType DEFLATE application/rss+xml
 		AddOutputFilterByType DEFLATE application/xml
+		AddOutputFilterByType DEFLATE application/json
 	</IfModule>
 </IfModule>

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: