我可以在 Google App Engine 上禁用 GZIP 吗?
我通过 Google App Engine 提供最小化的 javascript 的小块,我认为 GZIP-unGZIP 过程不必要地减慢了我的速度。 (为了澄清,我将它们快速发送到许多不同的请求它们的网站,并且我已经优化了该过程的大部分其他部分)。
作为参考,这些文件非常小,以至于 GZIP 节省的空间可能少于“Content-Encoding: gzip”标头。
不过,根据文档
如果客户端在请求中发送 HTTP 标头,表明客户端可以接受压缩 (gzip) 内容,则 App Engine 会自动压缩响应数据并附加相应的响应标头。
app.yaml 或其他地方是否有可以禁用 GZIP 的设置?这一定是可能的,因为有些文件是解压缩的。
I'm serving up tiny little chunks of minimized javascript through Google App Engine, and I think the GZIP-unGZIP process is slowing me down unnecessarily. (To clarify, I'm sending them quickly to many different websites who request them and I've optimized most of the other parts of the process).
For reference the files are so small that the GZIP savings can be less then the "Content-Encoding: gzip" header.
However, from the documentation
If the client sends HTTP headers with the request indicating that the client can accept compressed (gzipped) content, App Engine compresses the response data automatically and attaches the appropriate response headers.
Is there a setting in app.yaml or somewhere that I can disable GZIP-ing? It must be possible since some files are served unzipped.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前无法从服务器端更改此行为(尽管,如果您控制客户端,则可以从其
Accept-Encoding
标头中删除 gzip 来完成相同的操作)有 与 Google 相关的一个未解决的错误,团队成员已将其标记为“已确认” ,但在过去一年左右的时间里似乎没有采取任何行动。您可能应该将您的声音添加到该票证中并为其加注星标以供将来通知。
It's not currently possible to change this behavior from the server side (although, if you control the client, you can remove gzip from its
Accept-Encoding
header to accomplish the same thing)There's an open bug about this with Google, and a team member has marked it "Acknowledged", but it doesn't look like there's been any action on it in the last year or so. You should probably add your voice to that ticket and star it for future notifications.