coool coool - 2 years ago 150
Javascript Question

jquery gzip google cached/expires

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..

Answer Source

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

Last-Modified: Mon, 08 Jun 2009 20:49:31 GMT
Content-Type: application/x-javascript; charset=UTF-8
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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download