Henri Gomez wrote:
Andr� Malo wrote:

* Henri Gomez wrote:


Ok, it works with SetOutputFilter DEFLATE, I'm now wonder
how to remove *.gif/*.jpg and *.js from being compressed.


hmm.
<Files ~ \.(gif|jpeg|js)$>
  SetEnv no-gzip
</Files>

Hum, it didn't seems to works on my iSeries.
Neither with :

SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary


?
If mod_jk uses the appropriate Apache API call (ap_set_content_type),

Not yet, since we'll have to reparse the tomcat reply which is not
done today.

AddOutputFilterByType DEFLATE text/html

I'll try to see how to add it...
The actual jk code in response processing is :

if(!strcasecmp(header_names[h], "Content-type")) {
char *tmp = apr_pstrdup(r->pool, header_values[h]);
ap_content_type_tolower(tmp);
r->content_type = tmp;
}

I update to use ap_set_content_type(r, tmp) instead of r->content_type = tmp and it works now !!!

Regards.

BTW, the fix will be in JK 1.2.2 / 2.0.3, also in mod_webapp and
right now in jakarta-tomcat-connectors CVS...


Reply via email to