开发者

gzip with webserver without content-coding

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜