Enabling gzip compression in the IBM HTTP Server

To compress content before it is delivered to the client you can use Apache Module mod_deflate

 

To compress text/html text/plain text/xml text/css and js files in the IBM HTTP Server, add the below 2 lines to httpd.conf:

 LoadModule deflate_module modules/mod_deflate.so
 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript

and restart IBM HTTP Server.

 

To see what files a browser is getting as compressed, in Firefox, you can create a shortcut with this content as the link:

 javascript:(function(){function read(url){var r=new
 XMLHttpRequest();r.open('HEAD',url,false);r.send(null);return
 r.getAllResponseHeaders();}alert(read(window.location))})()

and it will easily print out the headers for whatever page you're on.

 

Otherwise, there are browser plugins for this specific purpose (livehttpheaders, web developer) and also command-line clients like wget -qS

 

There are samples at the top of this link to the Apache Module mod_deflate http://publib.boulder.ibm.com/httpserv/manual70/mod/mod_deflate.html

 

 

title image (modified) credit: (cc) Some rights reserved by buggi

 



Tags:  compress websphere gzip was ibm_http_server compression
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值