configuration-templates – Diff between revs 4 and 5
?pathlinks?
Rev 4 | Rev 5 | |||
---|---|---|---|---|
Line 6... | Line 6... | |||
6 | |
6 | |
|
Line 7... | Line 7... | |||
7 | <IfModule mod_deflate.c> |
7 | <IfModule mod_deflate.c> |
|
8 | |
8 | |
|
9 | # Force compression for mangled `Accept-Encoding` request headers |
- | ||
10 | # https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html |
9 | # Force compression for mangled `Accept-Encoding` request headers |
|
11 | |
10 | # https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html |
|
12 | <IfModule mod_setenvif.c> |
11 | <IfModule mod_setenvif.c> |
|
13 | <IfModule mod_headers.c> |
12 | <IfModule mod_headers.c> |
|
14 | SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding |
13 | SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding |
|
15 | RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding |
14 | RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding |
|
Line 16... | Line -... | |||
16 | </IfModule> |
- | ||
17 | </IfModule> |
- | ||
18 | |
15 | </IfModule> |
|
19 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
16 | </IfModule> |
|
20 | |
17 | |
|
21 | # Compress all output labeled with one of the following media types. |
18 | # Compress all output labeled with one of the following media types. |
|
22 | # |
19 | # |
|
23 | # (!) For Apache versions below version 2.3.7 you don't need to |
20 | # (!) For Apache versions below version 2.3.7 you don't need to |
|
24 | # enable `mod_filter` and can remove the `<IfModule mod_filter.c>` |
21 | # enable `mod_filter` and can remove the `<IfModule mod_filter.c>` |
|
25 | # and `</IfModule>` lines as `AddOutputFilterByType` is still in |
22 | # and `</IfModule>` lines as `AddOutputFilterByType` is still in |
|
26 | # the core directives. |
- | ||
27 | # |
23 | # the core directives. |
|
28 | # https://httpd.apache.org/docs/current/mod/mod_filter.html#addoutputfilterbytype |
24 | # |
|
29 | |
25 | # https://httpd.apache.org/docs/current/mod/mod_filter.html#addoutputfilterbytype |
|
30 | <IfModule mod_filter.c> |
26 | <IfModule mod_filter.c> |
|
31 | AddOutputFilterByType DEFLATE "application/atom+xml" \ |
27 | AddOutputFilterByType DEFLATE "application/atom+xml" \ |
|
Line 73... | Line 69... | |||
73 | # browsers) wouldn't know that they first need to uncompress |
69 | # browsers) wouldn't know that they first need to uncompress |
|
74 | # the response, and thus, wouldn't be able to understand the |
70 | # the response, and thus, wouldn't be able to understand the |
|
75 | # content. |
71 | # content. |
|
76 | # |
72 | # |
|
77 | # https://httpd.apache.org/docs/current/mod/mod_mime.html#addencoding |
73 | # https://httpd.apache.org/docs/current/mod/mod_mime.html#addencoding |
|
78 | |
- | ||
79 | <IfModule mod_mime.c> |
74 | <IfModule mod_mime.c> |
|
80 | AddEncoding gzip svgz |
75 | AddEncoding gzip svgz |
|
81 | </IfModule> |
76 | </IfModule> |
|
Line 82... | Line 77... | |||
82 | |
77 | |