Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to specify to server with Content-Encoding: gzip? #9

Open
treeform opened this issue Jan 27, 2016 · 1 comment
Open

Comments

@treeform
Copy link

You can serve stuff from s3 gzipped (with Content-Encoding: gzip) but the uploader has to upload it already gzipped. S3 will not do this for you. s3-uploader needs know to gzip files such as html, js, css but not already compressed files like png, jpeg.

More info:
http://www.rightbrainnetworks.com/blog/serving-compressed-gzipped-static-files-from-amazon-s3-or-cloudfront/
http://stackoverflow.com/questions/5442011/serving-gzipped-css-and-javascript-from-amazon-cloudfront-via-s3

@patrickmichalina
Copy link

Hey man not sure when this dude is going to update this repo!

So I forked it https://github.com/patrickmichalina/s3-static-site-uploader

Added the ability to say your content is gzipped and it will assign 'gzip' to the content-encoding.

It was a quick thing, so it isn't robust, but may help!

npm: s3-upload-static

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants