Skip to Content
avatar image
Former Member

NW CE : How to turn off gzip compression for specific Servlet responses

Hi all,

i got the problem that on our NW CE 7.1 installation all response content seems to be automatically compressed via gzip (if the request has the header "Accept-Encoding: gzip", of course).

But i need a uncompressed/unencoded repsonse.

Therefore I tried to override the HTTP header of my servlet- response with:

response.setHeader("Content-Encoding","none");

But this result in the following http-header of the corresponding servlet response.

.....

Content-Encoding: none

Content-Encoding: gzip

.....

It seems to me that the J2EE automatically compresses responses.

Unfortunately i am not able to set the "Accept-Encoding" header of the corresponding request which initiate this response. This is related to an IE bug with XMLHttpRequest which i must use for my program.

Thank you very much for any hint.

Kind regards

Ritesh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 01, 2008 at 02:48 PM

    Ritesh,

    Check out the Property :

    In Config Tool ->Go to u201Ccluster-datau201D->Global server configuration ->services->http->

    Select "Never Compressed" ->

    in NW CE7.1 this property can be found at local system->cluster_config->system->instances->current_instance->cfg->http->properties->

    Regards,

    Karthick Eswaran

    Add comment
    10|10000 characters needed characters exceeded