Page MenuHomePhabricator

Serve .stl 3d model files with gzip compression
Closed, ResolvedPublic

Description

.stl files as loaded by the 3D extension are currently served without compression, which roughly doubles their size versus applying gzip at the HTTP(S) layer.

https://upload.wikimedia.org/wikipedia/commons/a/af/Asad_Al-Lat.stl
1,470,284 bytes raw -> 700,075 bytes gzipped

https://upload.wikimedia.org/wikipedia/commons/0/0e/Venus_%28Afrodite%29_fra_Milo_-_KAS434_1.stl
137,129,384 bytes raw -> 67,906,901 bytes gzipped

as tested with gzip -9

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 413236 had a related patch set uploaded (by Brion VIBBER; owner: Brion VIBBER):
[operations/puppet@production] WIP - gzip .stl files on transfer (application/sla)

https://gerrit.wikimedia.org/r/413236

Change 413236 merged by BBlack:
[operations/puppet@production] gzip .stl files on transfer (application/sla)

https://gerrit.wikimedia.org/r/413236

brion claimed this task.

Confirmed this is now working. :)