为什么不能浏览器发送gzip的请求? [英] Why can't browser send gzip request?

查看:526
本文介绍了为什么不能浏览器发送gzip的请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果web服务器可以发送gzip的反应,为什么不能浏览器发送gzip的请求?

If webserver can send gzip response, why can't browser sent gzip request?

推荐答案

客户端和服务器必须在如何沟通达成一致;这部分是该通信是否能融为一体pressed。 HTTP被设计成一个请求/响应模式,独创几乎肯定设想始终有小的请求和潜在的巨大反应。 COM pression不是的需要的实施HTTP,也有不支持服务器和客户端。

The client and server have to agree on how to communicate; part of this is whether the communication can be compressed. HTTP was designed as a request/response model, and the original creation was almost certainly envisioned to always have small requests and potentially large responses. Compression is not required to implement HTTP, there are both servers and clients that don't support it.

HTTP COM pression是由客户端实现的话它可以支持COM pression,如果服务器看到这个请求,并支持COM pression它能COM preSS响应。对COM preSS请求的客户端就必须有一个pre-要求,实际上谈判的请求,将作出COM pressed或将它有权要求COM pression作为所有请求支持的编码。

HTTP compression is implemented by the client saying it can support compression, and if the server sees this in the request and it supports compression it can compress the response. To compress the request the client would have to have a "pre-request" that actually negotiated that the request would be made compressed OR it would have to require compression as a supported encoding for ALL requests.

这篇关于为什么不能浏览器发送gzip的请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆