Reputation: 205
when i use compressed (gzipped) static files from Amazon S3 like this parameter, it ubable to open this file i got error Content Encoding Error
what to do to access this css file with gzip from s3
My css file link : http://d2dbcr33josved.cloudfront.net/css/style_s3cloud.css
Upvotes: 1
Views: 308
Reputation: 4072
You need to manually gzip the files before uploading to S3. S3 doesnt do the gzip part, but will just server what you upload along with the headers which you set.
Your header setting is ok here. Just need to upload the gziped file: From Linux or OSX, this can be easily done with "gzip -9 style_s3cloud.css". Then upload the file.
Upvotes: 1