cloudfront CDN and GZIP

#1
Hi All,

Hoping to get some help. I don't think this is a bug, more of a configuration issue.

I am using Magento on my Litespeed 5.0 server.

I want to use a Amazon's CDN, Cloudfront (as my site is hosted on AWS ec2) due to heavy image and JS load.

All is working except that content served from Cloudfront isn't GZIP'd. When i am serving the files straight from litespeed they are GZIP's perfectly.

Doing some googling, i can see for NGINX servers there are additional configuration's needed

The important part: When CloudFront forwards a request to the origin server, it includes a Via header. This causes NGINX to interpret the request as proxied and, by default, NGINX disables compression for proxied requests. If your version of NGINX includes the gzip_proxied setting, change the value to any so NGINX will return compressed content to CloudFront. For more information, see the NGINX documentation for the module ngx_http_gzip_module.

from:
http://docs.aws.amazon.com/AmazonCl...gCompressedFiles.html#ChoosingFilesToCompress

just wondering based on that info, what i can do to get litespeed to server the GZIP'd static files to Cloudfront?

Hopefully that makes sense?
 
#3
Thanks,

It seems to be inconsistent by browser and compression amount.
From what I have read it only works with http 1.0 not 1.1
It doesn't work with SSL at all.

Might head over to Amazon forums
 
Top