Не сжимается

Монашёв Михаил postmaster at softsearch.ru
Fri Sep 29 18:47:05 MSD 2006


Здравствуйте, Игорь.

При таком конфиге:

http {
        include       conf/mime.types;
        default_type  application/octet-stream;

        gzip            on;
        gzip_min_length 1100;
        gzip_buffers    4 8k;
        gzip_types      text/html application/x-javascript text/css;
        ...

        server {

                location /cache/ {
                        root ххххххххх;
                        expires epoch;
                        charset utf-8;
                        log_not_found  off;
                }

        }


Выдаётся вот такой ответ при запросе к локейшену /cache/ :

HTTP/1.0 200 OK
Server: nginx/0.3.60
Date: Fri, 29 Sep 2006 14:38:38 GMT
Content-Type: application/x-javascript; charset=utf-8
Content-Length: 78
Last-Modified: Fri, 29 Sep 2006 14:31:31 GMT
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache
Accept-Ranges: bytes
X-Cache: MISS from gateway
X-Cache-Lookup: MISS from gateway:3128
Proxy-Connection: keep-alive

CU("аиС┘Р╟РёР╩ Р°Р╬Р╫Р╟С┬С▒Р╡","<img src=http://talxy.ru/i/smiles/20.gif>");

JavaScript почему-то отдаётся не сжатым, хотя
application/x-javascript стоит в gzip_types :-(

-- 
С уважением,
Монашёв Михаил, SoftSearch.ru
Member of Independent Software Developers Forum (ISDEF)
mailto:postmaster at softsearch.ru
ICQ# 166233339
http://softsearch.ru/
Без бэкапа по жизни.






More information about the nginx-ru mailing list