cnpm / cnpmcore

Private NPM Registry for Enterprise
https://npmmirror.com
MIT License
607 stars 80 forks source link

Gzip wasm in npmmirror unpkg cdn #569

Closed rwv closed 1 year ago

rwv commented 1 year ago

Could you please provide gzip compression to wasm?

$ curl -I https://registry.npmmirror.com/@ruffle-rs/ruffle/0.1.0-nightly.2023.8.7/files/0b3fec2cb197703a3174.wasm
HTTP/2 200 
server: Tengine
content-type: application/wasm
strict-transport-security: max-age=5184000
date: Wed, 09 Aug 2023 02:42:00 GMT
vary: Origin, Accept, Accept-Encoding
github-actions[bot] commented 1 year ago

我们已经看到你的反馈,如果是功能缺陷,可以提供一下重现该问题的方式;如果是新功能需求,我们会尽快加入讨论。同时我们非常期待你可以加入我们的贡献者行列,让项目可以长期可持续发展。

fengmk2 commented 1 year ago

Sure

fengmk2 commented 1 year ago

done

curl -I https://registry.npmmirror.com/@ruffle-rs/ruffle/0.1.0-nightly.2023.8.7/files/0b3fec2cb197703a3174.wasm --compressed      
HTTP/2 200 
server: Tengine
content-type: application/wasm
strict-transport-security: max-age=5184000
date: Wed, 09 Aug 2023 04:20:18 GMT
vary: Origin, Accept, Accept-Encoding
request-id: 0c231e20-366c-11ee-ba37-5f82d581d1bd
cache-control: public, max-age=31536000
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-download-options: noopen
x-readtime: 43.545
via: cn5114.l1, kunlun9.cn5114, l2cn3058.l2, cache40.l2cn3058, npmmirror-x86-001, cache40.l2cn3058[56,56,200-0,M], cache26.l2cn3058[58,0], kunlun9.cn5114[112,112,200-0,M], kunlun4.cn5114[256,0]
content-encoding: gzip
ali-swift-global-savetime: 1691554818
age: 0
x-cache: MISS TCP_MISS dirn:-2:-2
x-swift-savetime: Wed, 09 Aug 2023 04:20:18 GMT
x-swift-cachetime: 31536000
timing-allow-origin: *
eagleid: dcb57d0b16915548182822012e