From 49e19a7a4e7f7bc9de1a072d2f6250d63d0ea35d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 31 May 2024 16:22:15 +0100 Subject: [PATCH] Enable compression for application/json responses --- cookbooks/apache/templates/default/brotli.conf.erb | 1 + cookbooks/apache/templates/default/deflate.conf.erb | 1 + 2 files changed, 2 insertions(+) diff --git a/cookbooks/apache/templates/default/brotli.conf.erb b/cookbooks/apache/templates/default/brotli.conf.erb index 3bf3dfcd2..aec7e0a1d 100644 --- a/cookbooks/apache/templates/default/brotli.conf.erb +++ b/cookbooks/apache/templates/default/brotli.conf.erb @@ -7,6 +7,7 @@ AddOutputFilterByType BROTLI_COMPRESS application/rss+xml AddOutputFilterByType BROTLI_COMPRESS application/wasm AddOutputFilterByType BROTLI_COMPRESS application/xml + AddOutputFilterByType BROTLI_COMPRESS application/json AddOutputFilterByType BROTLI_COMPRESS image/svg+xml diff --git a/cookbooks/apache/templates/default/deflate.conf.erb b/cookbooks/apache/templates/default/deflate.conf.erb index 9f9bda5f9..915d4b396 100644 --- a/cookbooks/apache/templates/default/deflate.conf.erb +++ b/cookbooks/apache/templates/default/deflate.conf.erb @@ -7,6 +7,7 @@ AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/wasm AddOutputFilterByType DEFLATE application/xml + AddOutputFilterByType DEFLATE application/json AddOutputFilterByType DEFLATE image/svg+xml -- 2.39.5