Serving Compressed Files Amazon vs Lightty

Posted by tike on Server Fault See other posts from Server Fault or by tike
Published on 2012-06-01T15:37:34Z Indexed on 2012/06/01 16:43 UTC
Read the original article Hit count: 276

Filed under:
|

We are currently using amazon CloudFront to serve css and according to Amazon itself, Amazon CloudFront can serve both compressed and uncompressed files from an origin server. But while i check compression it shows everything fine in origin server but it shows notcompressed checking in the link with cloudfront.

e.g. http://www.port80software.com/tools/compresscheck.asp?url=http%3A%2F%2Fimgsrv.mydomain.com%2Fen-UK%2Fsomething.css

it would result with Compression status: (gzip)

while with cloudfront

http://www.port80software.com/tools/compresscheck.asp?url=http%3A%2F%2hereisit.cloudfront.net%2F%2Fsomething.css

Compression status: Uncompressed

Origin server is running lighttpd with mod_deflate however, allowed config is:

deflate.allowed_encodings      = ("bzip2", "gzip", "deflate")

[i would think, putting extra allowed encoding wont affect as such.]

Here i am clueless, what is the real issue.

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about lighttpd