enabling GZIP in AEM/dispatcher/web | Community
Skip to main content
anilkum
Level 4
Oct 16, 2015 2:29 AM UTC
Solved

enabling GZIP in AEM/dispatcher/web

I am trying to enable GZip so that pages are served in compressed format. I could find only Apache 1.3 specific information in the dispatcher configuration documents as listed below.. Do we have alternative for later version of Apache?

-------------------------------------------------------------------------------------------------------------------------------------------------------------

Compression (Apache 1.3 only)

On Apache 1.3 web servers you can compress the cached documents. Commpression allows Apache to return the document in a compressed form if so requested by the client.

NOTE

Currently only the gzip format is supported.

Only applicable for Apache 1.3.

The following rule caches all documents in compressed form; Apache can return either the uncompressed or the compressed form to the client:

/rules
{
 /rulelabel { /glob "*" /type "allow" /compress "gzip" }
}

-------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Thanks,

Anil

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Oct 16, 2015 2:29 AM UTC

Hi,

You should enable gzip compression on both AEM (as mentioned by @bsloki) and on the webserver. When you use apache, you can use the usual mod_deflate.

kind regards,
Jörg

3 replies

Level 2
Jul 12, 2021 7:25 AM UTC

What's the benfit here of gzipping on AEM? If Apache takes care of gzipping everything - what's the value here of doing it on AEM as well? My colleague is suggesting that gzipping stuff on AEM is actually providing zero benefit since Dispatcher will decompress the response from AEM anyway... So what's the point?

Translate
Lokesh_Shivalingaiah
Level 10
Oct 16, 2015 2:29 AM UTC

You can enable gzip in OSGi configuration aswell from the configMgr for 'Day CQ HTML Library Manager'

For dispatcher, Document says its applicable for Apache 1.3, however did you try on the latest version ? 

Translate
joerghoh
joerghohAccepted solution
Employee
Oct 16, 2015 2:29 AM UTC

Hi,

You should enable gzip compression on both AEM (as mentioned by @bsloki) and on the webserver. When you use apache, you can use the usual mod_deflate.

kind regards,
Jörg

Translate