Web 服务器或应用程序服务器中的 gzip 压缩?

发布于 2024-08-25 01:07:57 字数 116 浏览 6 评论 0原文

我在 J2EE 环境中使用 Weblogic 应用程序服务器和 Apache Web 服务器,并计划实现响应的 gzip 压缩。

不确定是在 Apache 服务器上还是在 weblogic 上实现压缩。

I'm using Weblogic application server and Apache web server in my J2EE environment and planning to implement gzip compression of response.

Not sure, whether to implement compression on the Apache server or on the weblogic.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

江南月 2024-09-01 01:07:57

除非您有充分的理由不这样做,否则您希望将压缩负载放在 Web 服务器上,因为应用程序服务器已经忙于执行其他操作。要将 mod_weblogicmod_deflate 一起使用,请查看 这篇文章

Unless you have a very good reason to not do so, you want to put the load of compression on the web servers since the app servers are already busy at doing other things. To use mod_weblogic together with mod_deflate, have a look at this post.

抠脚大汉 2024-09-01 01:07:57

取决于您希望标头由 apache 还是由应用服务器处理。您需要设置编码类型和内容长度标头才能对 http 使用 gzip 压缩。 Apache 可能更有可能针对它进行优化。

Depends whether you want the headers to be handled by apache or by the app server. You need to set the encoding type and content length headers to use gzip compression for http. Apache may be more potentially optimised for it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文