eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.46k stars 314 forks source link

Is there a way to turn off gzip compression when deploying to AWS? #273

Open nathan-artist opened 7 years ago

nathan-artist commented 7 years ago

When using cactus deploy to deploy to AWS S3, the files are uploaded (and served by S3) with Content-Encoding: gzip, which is not compatible with some older browsers (see, e.g., Which browsers can handle 'Content-Encoding:'?). Is there a way to turn off gzip compression when deploying, to preserve compatibility with older browsers?

nathan-artist commented 7 years ago

Since I don't know the answer to this question, my current (rather stupid) workaround is to run cactus deploy to deploy to AWS S3; then, using an S3 client, I delete all the files in the S3 bucket and re-upload all the files in the local .deploy folder, again using the S3 client. It's a supremely stupid workaround, but I don't know how to stop cactus from gzipping the files.