]> git.openstreetmap.org Git - chef.git/commitdiff
apache: fix IfModule for mod_brotli.c + align config with pristine
authorGrant Slater <github@firefishy.com>
Fri, 14 Oct 2022 10:01:19 +0000 (11:01 +0100)
committerGrant Slater <github@firefishy.com>
Fri, 14 Oct 2022 10:01:19 +0000 (11:01 +0100)
cookbooks/apache/templates/default/brotli.conf.erb
cookbooks/apache/templates/default/deflate.conf.erb

index 7000e590e6c4cbe4a3657cb1d581a06406e09f05..3bf3dfcd2e76b601fd37e69df0fe19a9bb7cf12d 100644 (file)
@@ -1,12 +1,14 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
-<IfModule mod_deflate.c>
-        <IfModule mod_filter.c>
-                AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml
-                AddOutputFilterByType BROTLI_COMPRESS text/css
-                AddOutputFilterByType BROTLI_COMPRESS application/x-javascript application/javascript application/ecmascript
-                AddOutputFilterByType BROTLI_COMPRESS application/rss+xml
-                AddOutputFilterByType BROTLI_COMPRESS application/xml
-                AddOutputFilterByType BROTLI_COMPRESS image/svg+xml
-        </IfModule>
+<IfModule mod_brotli.c>
+       <IfModule mod_filter.c>
+               AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript
+               AddOutputFilterByType BROTLI_COMPRESS application/x-javascript application/javascript application/ecmascript
+               AddOutputFilterByType BROTLI_COMPRESS application/rss+xml
+               AddOutputFilterByType BROTLI_COMPRESS application/wasm
+               AddOutputFilterByType BROTLI_COMPRESS application/xml
+               AddOutputFilterByType BROTLI_COMPRESS image/svg+xml
+       </IfModule>
 </IfModule>
+
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
index a418736e71cad7b34f38dcaf1a9ad96d411e0d86..9f9bda5f9aabde23551f341edbbe6bef8e58a99e 100644 (file)
@@ -1,15 +1,14 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 <IfModule mod_deflate.c>
-        <IfModule mod_filter.c>
-                # these are known to be safe with MSIE 6
-                AddOutputFilterByType DEFLATE text/html text/plain text/xml
-
-                # everything else may cause problems with MSIE 6
-                AddOutputFilterByType DEFLATE text/css
-                AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
-                AddOutputFilterByType DEFLATE application/rss+xml
-                AddOutputFilterByType DEFLATE application/xml
-                AddOutputFilterByType DEFLATE image/svg+xml
-        </IfModule>
+       <IfModule mod_filter.c>
+               AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
+               AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
+               AddOutputFilterByType DEFLATE application/rss+xml
+               AddOutputFilterByType DEFLATE application/wasm
+               AddOutputFilterByType DEFLATE application/xml
+               AddOutputFilterByType DEFLATE image/svg+xml
+       </IfModule>
 </IfModule>
+
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet