Take the 2-minute tour ×

I use the google cdn url for getting the jquery / ui. But when I tested using YSlow I found that the both js/css is not gzip though other components from server were gzipped and had expries(it does a content modified check)..should i have to added anything in the url to let know the browser that it should cache../get the gzip content..

THnks ManickamPR.

share|improve this question
add comment

3 Answers

up vote 5 down vote accepted

Looks gzipped and properly set to expire to me...


Last-Modified: Mon, 08 Jun 2009 20:49:31 GMT
Expires: Fri, 09 Jul 2010 17:22:01 GMT
Date: Thu, 09 Jul 2009 17:22:01 GMT
Cache-Control: public, max-age=31536000
Vary: Accept-Encoding
Content-Encoding: gzip
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
Server: GFE/2.0

200 OK
share|improve this answer
add comment

Getting the gzip or not is dependent upon both the browser and the server. If the browser can't accept gzip, it won't request it. If the server doesn't support gzipping, then even if the browser requests it, it won't respond with gzip. There's nothing you can do about it. Also the expires header is set on the server side, so there is nothing you can do about it either.

share|improve this answer
add comment

Yes, it is dependent on the request message send by the browser, if it will send the Accept encoding to gzip, it might get it if the server support it.

e.g take this http request message.

GET google HTTP/1.1

Host: aajtak.intoday.in

Accept: /


Accept-Encoding: gzip, deflate, x-gzip, identity; q=0.9

Accept-Language: en;q=1.0,zh-cn, zh;q=0.5


Thanks supermanhelp.com

share|improve this answer
add comment

Your Answer


