Gzip files before upload to s3 #391
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The stls from CadQuery and OpenSCAD are text based stls and so we're throwing away bandwidth and taking a performance hit by not gziping.
Gzip for s3 basically needs to be gziped before upload and than have
set.
https://stackoverflow.com/questions/8080824/how-to-serve-gzipped-assets-from-amazon-s3
The obvious part that needs to change is
putObjectinapp/api/src/docker/common/utils.jsbut there might be a few more nuances.Note that the latest OpenSCAD release supports binary STL too, it just keeps the default for command line calls to be ASCII as some external tooling depends on that. GUI export now defaults to binary.