grav: "Content-Encoding: none" breaks mod_deflate
Hi,
I’m using mod_deflate instead of grav’s builtin gzip-compression because it’s more flexible for my needs.
As grav sets the header Content-Encoding: none in system/src/Grav/Common/Grav.php when having system.cache.gzip set to false, grav is preventing httpd from compressing the output. Imho there’s no need for setting this header when compression is not wanted.
Kind regards,
Phil
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 19 (12 by maintainers)
Commits related to this issue
- FastCGI: Use Apache's mod_deflate if Grav's builtin gzip compression was turned off (#548) — committed to getgrav/grav by mahagr 9 years ago
- Fixed issue with `Content-Encoding: none`. It should really be `Content-Encoding: identity` instead — committed to getgrav/grav by mahagr 7 years ago
- Fix to allow you to enable content-encoding: identity. Set to ‘none’ by default. #548 — committed to getgrav/grav by rhukster 7 years ago
@rhukster I think the correct one would be using
Content-Encoding: identity, which means “no compression, no modification”