gzip compression in web server or app server?

删除回忆录丶 提交于 2019-12-23 04:37:40

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/2430401/gzip-compression-in-web-server-or-app-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!