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

Commit

Permalink
Add gzip encoding by default
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkeung committed Dec 22, 2017
1 parent 05d3926 commit 345d831
Showing 1 changed file with 5 additions and 0 deletions.
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
<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>

0 comments on commit 345d831

Please sign in to comment.