开发者

gzip with webserver without content-coding

开发者 https://www.devze.com 2023-04-08 18:37 出处:网络
I have a webserver without content-coding (boa an开发者_C百科d not enough ressources). is there a possibility to put ziped javascript-file on the webserver and unzip it at the browser after downloadin

I have a webserver without content-coding (boa an开发者_C百科d not enough ressources). is there a possibility to put ziped javascript-file on the webserver and unzip it at the browser after downloading like content-coding?


In theory yes. You would need to add the Content-Encoding: deflate header to your http response. You can not place a zip file created by a zip program on the server to be transferred, as it contains a header with the file structure before the deflate payload begins.

Also mind the differences between gzip and deflate. With gzip, similar is possible, too.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号