myślę, że ten mod dla apache
http://httpd.apache.org/docs/2.2/mod/mod_deflate.html (2)
A to dla Nginx
http://wiki.nginx.org/HttpGzipModule (1)
Wygląda na to, czego potrzebujesz w zależności od serwera planujecie posługiwać się. Reszta należy do Ciebie!
Uwaga modułu nginx zarówno umożliwia zamykanie dekompresji:
[edit] gzip
Syntax: gzip on | off
Default: off
Context: http
server
location
if in location
Reference: gzip
Enables or disables gzip compression.
i radzenia sobie z proxy:
[edit] gzip_proxied
Syntax: gzip_proxied off | expired | no-cache | no-store | private | no_last_modified | no_etag | auth | any ...
Default: off
Context: http
server
location
Reference: gzip_proxied
It allows or disallows the compression of the response for the proxy request in the dependence on the request and the response. The fact that, request proxy, is determined on the basis of line "Via" in the headers of request. In the directive it is possible to indicate simultaneously several parameters:
off - disables compression for all proxied requests
expired - enables compression, if the "Expires" header prevents caching
no-cache - enables compression if "Cache-Control" header is set to "no-cache"
no-store - enables compression if "Cache-Control" header is set to "no-store"
private - enables compression if "Cache-Control" header is set to "private"
no_last_modified - enables compression if "Last-Modified" isn't set
no_etag - enables compression if there is no "ETag" header
auth - enables compression if there is an "Authorization" header
any - enables compression for all requests
[edit] gzip_types
najlepsze życzenia!
Źródła:
1) http://forum.nginx.org/read.php?11,96472,214303
2) http://httpd.apache.org/docs/2.2/mod/mod_deflate.html#inflate (Sekcja wyjściowa dekompresyjne)
Jestem zdezorientowany: czy chcesz wysłać dyrektywę z klienta do serwera, czy chcesz coś, co jest gwarantowane, aby przejść przez to, czy niechętny serwer proxy może być przeszkodą, czy też dyrektywa nakazuje serwerowi, aby nie kompresował pod żadnym pozorem? – fvu
Drugi ... Chcę, żeby dyrektywa nakazała serwerowi, aby nie kompresował pod żadnym pozorem. – Homer6
Należy pamiętać, że aby zapobiec wszystkim uciskom, prawdopodobnie będziesz chciał użyć '*; q = 0' zamiast tylko zabraniać gzip i deflacji. To powiedziawszy, rzeczywiście myślę, że wiele serwerów nie przejmuje się funkcją Accept-Encoding, tak jak powinny. Istnieje również "Accept-Encoding: identity" ... –