Enabling/disabling both Dynamic and Static compression for gzip and brotli in the server config tab does nothing. Compression is always ON regardless of setting.
When trying to change the level of compression in all fields, data size of compressed files stays the same according to GTmetrix and Chrome Network Console tab even after complete cache purge (Empty Entire Cache in LSCache plugin). Once the data setting changed to reflect the desired compression level but later was not able to replicate how that was achieved including server restart and OLS graceful restart.
The only way I managed to disable all compression was when I started deleting Compressible Types (MIME types) field. This is not an ideal solution, however as I just want to disable the static brotli compression and adjust the dynamic and static gzip compressions to play nice with my CPU and MEM as my CDN does not accept brotli.
Setting rewrite rules and SetEnv via .htaccess to disable brotli or gzip has no effect as well.
Rewrite rule I used: RewriteRule . - [E=no-gzip:1] RewriteRule . - [E=no-brotli:1]
SetEnv I used: SetEnv no-gzip 1 SetEnv no-brotli 1
Another problem I also noticed is that the Min Static File Size (bytes) is not applied correctly. I have it set to 1280 bytes (everything under that fits in 1 packet so no need for compression) but the server ignores it and compresses files under the specified number.
I use OLS deployment in GCloud instance.
OLS version: 1.6.18 Stable
PHP 7.4.14
WP 5.6 with LSCache 3.6.1
Enable Compression set to Yes in Virtual Host (disabling on server level should override the VHost)
zlib.output_compression = Off in php.ini (as it should be)
CDN is disabled while testing compression settings
Please let me know if I can add additional info so you can better reproduce the issue!
Regards!
When trying to change the level of compression in all fields, data size of compressed files stays the same according to GTmetrix and Chrome Network Console tab even after complete cache purge (Empty Entire Cache in LSCache plugin). Once the data setting changed to reflect the desired compression level but later was not able to replicate how that was achieved including server restart and OLS graceful restart.
The only way I managed to disable all compression was when I started deleting Compressible Types (MIME types) field. This is not an ideal solution, however as I just want to disable the static brotli compression and adjust the dynamic and static gzip compressions to play nice with my CPU and MEM as my CDN does not accept brotli.
Setting rewrite rules and SetEnv via .htaccess to disable brotli or gzip has no effect as well.
Rewrite rule I used: RewriteRule . - [E=no-gzip:1] RewriteRule . - [E=no-brotli:1]
SetEnv I used: SetEnv no-gzip 1 SetEnv no-brotli 1
Another problem I also noticed is that the Min Static File Size (bytes) is not applied correctly. I have it set to 1280 bytes (everything under that fits in 1 packet so no need for compression) but the server ignores it and compresses files under the specified number.
I use OLS deployment in GCloud instance.
OLS version: 1.6.18 Stable
PHP 7.4.14
WP 5.6 with LSCache 3.6.1
Enable Compression set to Yes in Virtual Host (disabling on server level should override the VHost)
zlib.output_compression = Off in php.ini (as it should be)
CDN is disabled while testing compression settings
Please let me know if I can add additional info so you can better reproduce the issue!
Regards!