Last active
November 15, 2017 11:21
-
-
Save ganey/aed3629b6adff61962e6d1af9e0953b4 to your computer and use it in GitHub Desktop.
Plesk enable mod_deflate 11.5+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file: /etc/httpd/conf.d/deflate.conf | |
<ifmodule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript | |
DeflateCompressionLevel 8 | |
</ifmodule> | |
# or set in Additional nginx directives per site: | |
gzip on; | |
gzip_comp_level 2; | |
gzip_http_version 1.0; | |
gzip_proxied any; | |
gzip_min_length 1100; | |
gzip_buffers 16 8k; | |
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
# Disable for IE < 6 because there are some known problems | |
gzip_disable "MSIE [1-6].(?!.*SV1)"; | |
# Add a vary header for downstream proxies to avoid sending cached gzipped files to IE6 | |
gzip_vary on; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment