ПРОЕКТЫ 


  АРХИВ 


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]

gzip, javascript


  • To: nginx-ru@xxxxxxxxx
  • Subject: gzip, javascript
  • From: Andrey <deepmindster@xxxxxxxxx>
  • Date: Fri, 18 May 2007 12:41:39 +0400
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=ViV36a88s36bNwoGvj/6qthR296+FVsQlKPNS4YokHvd3cYJKKJD3dADF3ZmB9di/SlTTDM2slUG38o5PrORAVmsmGRsmiHQJ9TTssmloX9oYZd1lVHdgaRLOOr6RaQ2Cg2LQxdoqZL1lCc9WxF0KCzKGEWIMXNBgsofPqWsqB0=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=TfCPwBaOQ6IHhUiBRmFfuTy4X9SAGRh+tNAlbkxtjPiy1DUkZ0MDITVcPvgkfbJog6U6vIAFlixDn9fDBJ/hVed8a1YCOYlwTdB2uBpxs2KiEsVG1A4zUgwzvmJq6xX4R0Cebyfp6UEAnJq8XblUlw+r54YGh/JzZFyhw7Exwow=

Доброго времени суток.

Заметил сегодня, похоже, что яваскрипт не сжимается при gzip on.
Он не сжимается совсем и так и должно быть?

Сужу по заголовкам:
Обычный контент, Content-Endocing: gzip

GET / HTTP/1.1 
Host: myhost.com/
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.8.0.3)
Gecko/20060425 SUSE/1.5.0.3-7 Firefox/1.5.0.3 
Accept: text/xml,application/xml,application/xhtml
+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 
Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3 
Accept-Encoding: gzip,deflate 
Accept-Charset: KOI8-R,utf-8;q=0.7,*;q=0.7 
Keep-Alive: 300 
Connection: keep-alive 
Cookie: PHPSESSID=fd33dfe07dc6fc73f09b94c011188eab 

HTTP/1.x 200 OK 
Server: nginx/0.5.20 
Date: Fri, 18 May 2007 08:14:36 GMT 
Content-Type: text/html; charset=utf-8 
Transfer-Encoding: chunked 
Connection: keep-alive 
Keep-Alive: timeout=20 
X-Powered-By: PHP/5.2.1 
Expires: Thu, 19 Nov 1981 08:52:00 GMT 
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0 
Pragma: no-cache 
Content-Encoding: gzip 


файл с яваскриптом, content-encoding отсутствует:

http://myhost.com/ajax/cpaint2.inc.js

GET /ajax/cpaint2.inc.js HTTP/1.1 
Host: myhost.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.8.0.3)
Gecko/20060425 SUSE/1.5.0.3-7 Firefox/1.5.0.3 
Accept: */* 
Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3 
Accept-Encoding: gzip,deflate 
Accept-Charset: KOI8-R,utf-8;q=0.7,*;q=0.7 
Keep-Alive: 300 
Connection: keep-alive 
Referer: http://myhost.com/
Cookie: PHPSESSID=fd33dfe07dc6fc73f09b94c011188eab 

HTTP/1.x 200 OK 
Server: nginx/0.5.20 
Date: Fri, 18 May 2007 08:14:37 GMT 
Content-Type: application/x-javascript 
Content-Length: 38983 
Last-Modified: Tue, 12 Dec 2006 11:15:36 GMT 
Connection: keep-alive 
Keep-Alive: timeout=20 
Accept-Ranges: bytes 






 




Copyright © Lexa Software, 1996-2009.