With CDN and gzip W3TC still links to uncompressed files
-
After switching to CloudFront CDN my PageSpeed and YSlow rating dropped for two reasons:
– JavaScrip/CSS are not compressed anymore
– no cache expiration for imagesMy site is https://frightanic.com. The CDN is at https://cdn.frightanic.com/.
The rendered markup contains links like https://cdn.frightanic.com/blog/wp-content/themes/itheme2/js/carousel.min.js?ver=3.5.1 although https://cdn.frightanic.com/blog/wp-content/themes/itheme2/js/carousel.min.js.gzip?ver=3.5.1 does also exist. The S3 settings related to Content-Encoding as per https://goo.gl/SyjTo were set correctly by W3TC while uploading to Amazon.
If I understand correctly W3TC is supposed to generate links to the .gzip files for user agents that support it?
As for the caching issue I see that the response for https://cdn.frightanic.com/blog/wp-content/uploads/2013/02/javascript_the_good_parts.jpg has Last-Modified and Etag set which is ok IMO. PageSpeed, however, complains because Expires is not set. I guess there’s nothing I or W3TC can do about this?
Update: one needs to set the desired headers manually in S3.
- The topic ‘With CDN and gzip W3TC still links to uncompressed files’ is closed to new replies.