You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark Thomas <ma...@apache.org> on 2020/06/09 20:20:48 UTC
Should Tomcat 10 enable response compression by default?
Hi all,
An enhancement has been opened to enable response compression by default:
https://bz.apache.org/bugzilla/show_bug.cgi?id=64431
In short, the proposal is to change the default for the Connector's
compression attribute from "off" to "on".
This would be for Tomcat 10 onwards only.
The following would be unchanged:
- compressibleMimeType
- compressionMinSize
- noCompressionStrongETag
It would be helpful to know what the range of views of the user
community are on this proposal.
So, thoughts?
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Should Tomcat 10 enable response compression by default?
Posted by Carsten Klein <c....@datagis.com>.
Although I believe that buggy clients are no longer a problem today,
compression may introduce complications when Tomcat runs behind a
reverse proxy as it is often the case. If your front-end server (e.g.
Apache) needs to modify the responses (e.g. with mod_proxy_http), you'll
end up with a quite expensive compress -> decompress -> compress
processing chain on the back end. That is obviously no good idea from a
performance and resource consumption point of view.
So, I'm actually with Rémy. Leave it off by default and point out that
there is an "on" available by explicitly writing compression="off" to
the connector.
Carsten
On Tue, Jun 9, 2020 at 10:20 PM Mark Thomas <ma...@apache.org> wrote:
> Hi all,
>
> An enhancement has been opened to enable response compression by default:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=64431
>
> In short, the proposal is to change the default for the Connector's
> compression attribute from "off" to "on".
>
> This would be for Tomcat 10 onwards only.
>
> The following would be unchanged:
> - compressibleMimeType
> - compressionMinSize
> - noCompressionStrongETag
>
> It would be helpful to know what the range of views of the user
> community are on this proposal.
>
> So, thoughts?
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Should Tomcat 10 enable response compression by default?
Posted by Johan Compagner <jc...@servoy.com>.
isn't that compression only working when the browser request for it?
So there are buggy browsers that do request it but can't handle it?
i would say that an opt-out is then also fine..
On Wed, 10 Jun 2020 at 08:28, Martin Grigorov <mg...@apache.org> wrote:
> On Tue, Jun 9, 2020 at 11:26 PM Manuel Dominguez Sarmiento <mads@renxo.com
> >
> wrote:
>
> > I would not change this default. GZIP (or other kinds) of response
> > compression are better addressed as servlet filters. Having the Tomcat
> > feature is good, but IMHO it should only be enabled by those who need it.
> >
> > At least in our case we have our own code to deal with this, considering
> > proxying, CDN, buggy browsers, etc.
> >
>
> I think the same - it should be opt-in feature.
>
> My 2c.
>
> Martin
>
>
> >
> > *Manuel Dominguez Sarmiento*
> >
> > On 09/06/2020 17:20, Mark Thomas wrote:
> > > Hi all,
> > >
> > > An enhancement has been opened to enable response compression by
> default:
> > > https://bz.apache.org/bugzilla/show_bug.cgi?id=64431
> > >
> > > In short, the proposal is to change the default for the Connector's
> > > compression attribute from "off" to "on".
> > >
> > > This would be for Tomcat 10 onwards only.
> > >
> > > The following would be unchanged:
> > > - compressibleMimeType
> > > - compressionMinSize
> > > - noCompressionStrongETag
> > >
> > > It would be helpful to know what the range of views of the user
> > > community are on this proposal.
> > >
> > > So, thoughts?
> > >
> > > Mark
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> >
> >
>
--
Johan Compagner
Servoy
Re: Should Tomcat 10 enable response compression by default?
Posted by Martin Grigorov <mg...@apache.org>.
On Tue, Jun 9, 2020 at 11:26 PM Manuel Dominguez Sarmiento <ma...@renxo.com>
wrote:
> I would not change this default. GZIP (or other kinds) of response
> compression are better addressed as servlet filters. Having the Tomcat
> feature is good, but IMHO it should only be enabled by those who need it.
>
> At least in our case we have our own code to deal with this, considering
> proxying, CDN, buggy browsers, etc.
>
I think the same - it should be opt-in feature.
My 2c.
Martin
>
> *Manuel Dominguez Sarmiento*
>
> On 09/06/2020 17:20, Mark Thomas wrote:
> > Hi all,
> >
> > An enhancement has been opened to enable response compression by default:
> > https://bz.apache.org/bugzilla/show_bug.cgi?id=64431
> >
> > In short, the proposal is to change the default for the Connector's
> > compression attribute from "off" to "on".
> >
> > This would be for Tomcat 10 onwards only.
> >
> > The following would be unchanged:
> > - compressibleMimeType
> > - compressionMinSize
> > - noCompressionStrongETag
> >
> > It would be helpful to know what the range of views of the user
> > community are on this proposal.
> >
> > So, thoughts?
> >
> > Mark
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
>
>
Re: Should Tomcat 10 enable response compression by default?
Posted by Manuel Dominguez Sarmiento <ma...@renxo.com>.
I would not change this default. GZIP (or other kinds) of response
compression are better addressed as servlet filters. Having the Tomcat
feature is good, but IMHO it should only be enabled by those who need it.
At least in our case we have our own code to deal with this, considering
proxying, CDN, buggy browsers, etc.
*Manuel Dominguez Sarmiento*
On 09/06/2020 17:20, Mark Thomas wrote:
> Hi all,
>
> An enhancement has been opened to enable response compression by default:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=64431
>
> In short, the proposal is to change the default for the Connector's
> compression attribute from "off" to "on".
>
> This would be for Tomcat 10 onwards only.
>
> The following would be unchanged:
> - compressibleMimeType
> - compressionMinSize
> - noCompressionStrongETag
>
> It would be helpful to know what the range of views of the user
> community are on this proposal.
>
> So, thoughts?
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Should Tomcat 10 enable response compression by default?
Posted by Michael Osipov <mi...@apache.org>.
Am 2020-06-09 um 22:20 schrieb Mark Thomas:
> Hi all,
>
> An enhancement has been opened to enable response compression by default:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=64431
>
> In short, the proposal is to change the default for the Connector's
> compression attribute from "off" to "on".
>
> This would be for Tomcat 10 onwards only.
>
> The following would be unchanged:
> - compressibleMimeType
> - compressionMinSize
> - noCompressionStrongETag
Shouldn't this be gone in 10?
>
> It would be helpful to know what the range of views of the user
> community are on this proposal.
>
> So, thoughts?
Don't enable by default. Carsten Klein brought up a few good points.
Another is when used in corporate networks, where clients and servers
are close, I see no benefit for compression here.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Should Tomcat 10 enable response compression by default?
Posted by Rémy Maucherat <re...@apache.org>.
On Tue, Jun 9, 2020 at 10:20 PM Mark Thomas <ma...@apache.org> wrote:
> Hi all,
>
> An enhancement has been opened to enable response compression by default:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=64431
>
> In short, the proposal is to change the default for the Connector's
> compression attribute from "off" to "on".
>
> This would be for Tomcat 10 onwards only.
>
> The following would be unchanged:
> - compressibleMimeType
> - compressionMinSize
> - noCompressionStrongETag
>
> It would be helpful to know what the range of views of the user
> community are on this proposal.
>
> So, thoughts?
>
I would prefer to leave it as it is now, but if you want to publicize it
more, maybe compression="off" could be added to the default server.xml so
that people know it's there.
Rémy