Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Add gzip encoding by default #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/apache2/vhost.template
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,9 @@
#ExpiresDefault "now plus 30 days"
#</LocationMatch>
</IfModule>

# Enable gzip encoding
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apache default config for when mod_deflate already includes a few of these. Would it not be better to only add here the missing ones? Or at least add a comment mentioning mention that

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript application/javascript text/javascript text/plain text/html text/xml application/xml
</IfModule>
</VirtualHost>