PierreZ / goStatic

A really small static web server for Docker
GNU General Public License v2.0
391 stars 77 forks source link

gzip support? #20

Closed janjangao closed 4 years ago

janjangao commented 4 years ago

i love this small static server,use for my frontend project,i generate index.js and index.js.gz,but on my browser,it default read index.js. can easily add gzip support without increase docker image size?

PierreZ commented 4 years ago

Hi @hayond,

I think that could be implemented pretty easily, backporting this code. Do you want to contribute to goStatic? :rocket:

janjangao commented 4 years ago

oh, i am a beginner of go language, but let me have a try :)

PierreZ commented 4 years ago

Awesome @hayond, let me know if you have any questions, or if you need help :smiley:

dimitor115 commented 4 years ago

@PierreZ I have also tried, please take a look at my PR :smile:

PierreZ commented 4 years ago

Thanks a lot @dimitor115, closing the issue :+1: