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:
parent
5e8d4697ad
commit
2da8c0f258
1 changed files with 6 additions and 4 deletions
10
README.md
10
README.md
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue