2
0
Fork 0
mirror of https://github.com/phanan/htaccess.git synced 2018-11-08 13:39:40 +01:00

Inline comments as suggested by @phanan in #2

This commit is contained in:
Jude Rosario 2015-02-10 21:53:35 +05:30
parent 5e8d4697ad
commit 2da8c0f258

View file

@ -300,9 +300,12 @@ FileETag None
Gzipping an easy way to reduce weight per page of your site. Gzipping an easy way to reduce weight per page of your site.
For `httpd-2.2`
```apacheconf ```apacheconf
#For Apache 2.2
# Compress Text, HTML , JS, CSS, XML: # Compress Text, HTML , JS, CSS, XML:
AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/html
@ -319,10 +322,9 @@ AddType x-font/eot .eot
AddType x-font/woff .woff AddType x-font/woff .woff
AddType image/x-icon .ico AddType image/x-icon .ico
AddType image/png .png AddType image/png .png
```
For `httpd-2.4` and up, in apache 2.2 you should enable `filter_module` and `deflate_module`.
```apacheconf # For Apache 2.4 +
# Declare a filter, which runs after all internal filters like PHP or SSI # Declare a filter, which runs after all internal filters like PHP or SSI
FilterDeclare gzip CONTENT_SET FilterDeclare gzip CONTENT_SET