minify output to gzip

Noob question how i can output it to minify gzip file using swc minify? is there a config? thanks
2 Replies
aelbore
aelboreOP4w ago
our main.js file is around 18-20mb minified the gzip around 1.5mb, if webserver gzip it on the fly the 20mb it takes few secs, for example if 50 users access this file in the same time it will gzip on the fly around 50 as well, currently we using built in nodejs compress gzip, when webserver see theres exsiting gzip file it will not do gzip on the fly
Levi
Levi7d ago
it sounds like you need caching, either on the software side or on the server side (cdn) if you dont want it to gzip multiple times when theres concurrent requests -- you should probably use a read/write lock when gzipping

Did you find this page helpful?