gzip, javascript
Andrey
deepmindster at gmail.com
Fri May 18 12:41:39 MSD 2007
Доброго времени суток.
Заметил сегодня, похоже, что яваскрипт не сжимается при 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
More information about the nginx-ru
mailing list