[Mod_gzip] SEND_AS_IS:RESPONSE_CONTENT_TYPE_EXCLUDED

Markus Heinisch mod_gzip@lists.over.net
Wed, 29 Jan 2003 13:20:44 +0100


Hi,

I have installed mod_gzip-1.3.26.1a in Apache 1.3.27 on Windows 2000. mod_gzip compresses fine (static html,...) except responses from the web-to-go handler, which is a module from Oracle to generate dynamic output (incl. JSP applications).  The mod_gzip.log file lists a lot of 'errors' like:

GET /webtogo/tutorial/ToDoList.jsp HTTP/1.1" 200 - mod_gzip: SEND_AS_IS:RESPONSE_CONTENT_TYPE_EXCLUDED In:0 -< Out:0 = 0%

or

GET /webtogo/WLTop/server HTTP/1.1" 200 - mod_gzip: SEND_AS_IS:NO_CONTENT_TYPE_IN_RESPONSE_HEADER In:0 -< Out:0 = 0%

or

GET /webtogo/dummy.html HTTP/1.1" 200 - mod_gzip: SEND_AS_IS:NO_200 In:0 -< Out:0 = 0

What goes wrong??

Can't mod_gzip compress output from the web-to-go handler?

Can anybody help me, please?

Sorry, the http://www.schroepl.net/projekte/mod_gzip/status.htm gives me a hint to solve the problem.

I have added the interesting lines of my HTTPD.CONF file:
...
ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_isapi.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c

LoadModule gzip_module modules/ApacheModuleGzip.dll
...
#
# Directives added for the Mobile Server
# 
LoadModule WTG_Module  D:\OracleLite\mobile\server\bin\wtgapach.DLL
#
# Enable handling of all virtual paths beginning with "/webtogo" by Mobile Server
#
<Location /webtogo>
	SetHandler web-to-go
</Location>
...

  mod_gzip_on                   Yes
  mod_gzip_can_negotiate        Yes
  mod_gzip_static_suffix        .gz
  AddEncoding              gzip .gz
  mod_gzip_command_version      '/mod_gzip_status'
 mod_gzip_temp_dir             C:\Temp\apache\gzip
  mod_gzip_keep_workfiles       No
  mod_gzip_minimum_file_size    300
  mod_gzip_maximum_file_size    10000000
  mod_gzip_maximum_inmem_size   1000000
  mod_gzip_min_http             1000
  mod_gzip_handle_methods        GET POST

  mod_gzip_item_exclude         reqheader  "User-agent: Mozilla/4.0[678]"
  mod_gzip_item_include         file       \.html$
  mod_gzip_item_include         file       \.xml$
  mod_gzip_item_include         file       \.xsl$
  mod_gzip_item_include         file       \.jsp$
  mod_gzip_item_include         file       \.jsp
  mod_gzip_item_include         uri        \.jsp$
  mod_gzip_item_include         uri        \.jsp
  mod_gzip_item_include         handler    \.*
  mod_gzip_item_include         handler    \.*$
  
  mod_gzip_item_exclude         file       \.js$
  mod_gzip_item_exclude         file       \.css$

  mod_gzip_item_include         file       \.pl$
  mod_gzip_item_include         handler    ^cgi-script$
  mod_gzip_item_include         handler    !cgi-script$
  mod_gzip_item_include         handler    !cgi-script
  mod_gzip_item_include         handler    !web-to-go$
  mod_gzip_item_include         handler    !web-to-go

  mod_gzip_item_include         mime       ^text/html$
  mod_gzip_item_include         mime       ^text/plain$
  mod_gzip_item_include         mime       ^text/xml$
  mod_gzip_item_include         mime       ^text/xsl$
  mod_gzip_item_include         mime       ^httpd/unix-directory$
  mod_gzip_item_include         mime       ^text/jsp
  mod_gzip_item_include         mime       ^text/jsp$
  mod_gzip_item_include         file       ^text/jsp$
  mod_gzip_item_include         handler    !text/jsp$
  mod_gzip_item_exclude         mime       ^image/
  mod_gzip_dechunk              Yes
  LogFormat                     "%h %l %u %t \"%V %r\" %<s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n -< Out:%{mod_gzip_output_size}n = %{mod_gzip_compression_ratio}n Prozent." common_with_mod_gzip_info2
  mod_gzip_send_vary            On
  LogFormat "%r#%{Content-type}o#%>s#%B#%{mod_gzip_result}n#%{mod_gzip_input_size}n#%{mod_gzip_output_size}n#%{User-agent}i" mgzta


Thank you,

Markus
------------------------------------------
Markus Heinisch      

Dipl.-Inform. 
Consultant 

Trivadis GmbH 
Freischützstrasse 92 
81927 München 
Germany 

Tel.: +49-89-99275930
Fax : +49-89-99275959 
Mobile: +49-172-7032261 
mailto:markus.heinisch@trivadis.com 
http://www.trivadis.com