Hi Dino,
This looks interesting. I'll definitely need to do some more studying of a number of directives I'm not familiar with. I will dig further.
Thanks very much for your reply,
Scott
From: dino@xxxxxxxxx <dino@xxxxxxxxx>
Sent: September 22, 2019 4:45 AM To: users@xxxxxxxxxxxxxxxx <users@xxxxxxxxxxxxxxxx> Subject: Re: mod_brotli vs / and / or / xor mod_deflate
Yes, you can install both modules. This is how i would setup (JUST AN EXAMPLE!): [SNIP] <IfModule brotli_module> # Compression ## BrotliCompressionQuality: 0-11 (default: 11) BrotliCompressionQuality 8 ## BrotliCompressionWindow: 10-24 (default: 22) BrotliCompressionWindow 18 # Logging # Filter note BrotliFilterNote Input brotli_in BrotliFilterNote Output brotli_out BrotliFilterNote Ratio brotli_ratio # Output filter AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/css text/xml AddOutputFilterByType BROTLI_COMPRESS text/css AddOutputFilterByType BROTLI_COMPRESS application/x-_javascript_ application/_javascript_ AddOutputFilterByType BROTLI_COMPRESS application/rss+xml AddOutputFilterByType BROTLI_COMPRESS application/json # This is compressed by deflate, check deflate_module configuration block below # AddOutputFilterByType BROTLI_COMPRESS application/xml # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary # Global output filer if necessary. # SetOutputFilter BROTLI_COMPRESS # SetEnvIfNoCase Request_URI \.txt$ no-br </IfModule> # If brotli is not installed use deflate # <IfModule !brotli_module> # <IfModule deflate_module> # AddOutputFilterByType DEFLATE text/html text/plain text/xml # AddOutputFilterByType DEFLATE text/css # #AddOutputFilterByType DEFLATE image/jpeg image/png # AddOutputFilterByType DEFLATE application/x-_javascript_ application/_javascript_ application/ecmascript # AddOutputFilterByType DEFLATE application/rss+xml # AddOutputFilterByType DEFLATE application/xml # </IfModule> # </IfModule> <IfModule deflate_module> # here we compress application/xml using deflate instead of brotli AddOutputFilterByType DEFLATE application/xml </IfModule> [/SNIP] Ciao, Dino. |