0

I have js file in googlecode.com/svn/trunk/Js/my.js .

But page speed validator says "Enable gzip compression", "Specify a Vary: Accept-Encoding header"

What property should I use to enable gzip compression and "Specify a Vary: Accept-Encoding header" for my.js ?

Alex
  • 1,397
  • 4
  • 15
  • 26
  • enabling gzip compression is done at the webserver config, not in your javascript. for Apache, for example, you can leverage mod_deflate. http://httpd.apache.org/docs/2.2/mod/mod_deflate.html – Tim A Dec 07 '12 at 20:32
  • I know, but this is for local files, such as myserver.com/my.js. I have js in google code server googlecode.com/svn/trunk/Js/my.js . So I need to use properties for this js. I don't know what properties. – Alex Dec 08 '12 at 06:19

0 Answers0