ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Не сжимается



On Fri, 29 Sep 2006, Монашёв Михаил wrote:

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

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 :-(

Возможно, из-за:

http://sysoev.ru/nginx/docs/http/ngx_http_gzip_module.html#gzip_http_version
http://sysoev.ru/nginx/docs/http/ngx_http_gzip_module.html#gzip_proxied

Как делался запрос ?


Игорь Сысоев
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.