I am running one of my sites through ySlow and I'm getting a 'C' on compress components with gzip stating: There are 2 plain text components that should be sent compressed.
These 2 files are my .css and .js file. Any thoughts as to these 2 files are the only ones not getting compressed. I saw on Stack Overflow that webkit and chrome don't support gzip on css and js files, but it was downvoted with no reasons.
preguntado el 10 de marzo de 12 a las 06:03
Many browsers, specifically Internet Explorer have just too many bugs related to compressed JS & CSS. They fail in very uniqe situations and such failures are difficult to catch during testing. Hence, it is advised not to compress CSS & JS.
Typically web servers must be configured explicitly for the type of text files to serve gzipped/compressed. Those settings will depend on your web server (e.g., Apache vs IIS).
This article is a good walk-through of the benefits of compression, and includes details for configuring it for IIS or Apache: http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/