Bug 36463: Compress application/json
This patch simply adds application/json to the mod_deflate configuration To test: 1 - Open the netowrk tab in firefox 2 - Load http://localhost:8081/api/v1/libraries 3 - Not the transferred size, and note no 'Content-Encoding: gzip" header 4 - Apply patch, reset_all (or edit /etc/koha/apache-shared.conf) 5 - Reload 6 - Note smaller size, note gzip header Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commitbccf7764c0
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitd8afbbf661
) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
d2a5a9783b
commit
301d796c62
2 changed files with 4 additions and 2 deletions
3
debian/templates/apache-shared.conf
vendored
3
debian/templates/apache-shared.conf
vendored
|
@ -36,7 +36,8 @@ SetEnv PERL5LIB "/usr/share/koha/lib"
|
|||
<IfModule mod_deflate.c>
|
||||
# Compress content with type html, text, and css, ...
|
||||
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css
|
||||
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript
|
||||
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml
|
||||
AddOutputFilterByType DEFLATE application/javascript application/x-javascript application/json
|
||||
|
||||
DeflateCompressionLevel 9
|
||||
|
||||
|
|
|
@ -61,7 +61,8 @@
|
|||
|
||||
# Compress content with type html, text, and css, ...
|
||||
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css
|
||||
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript
|
||||
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml
|
||||
AddOutputFilterByType DEFLATE application/javascript application/x-javascript application/json
|
||||
|
||||
DeflateCompressionLevel 9
|
||||
|
||||
|
|
Loading…
Reference in a new issue