enabling GZIP in AEM/dispatcher/web | Community
Skip to main content
anilkum
Level 4
October 16, 2015
Solved

enabling GZIP in AEM/dispatcher/web

  • October 16, 2015
  • 3 replies
  • 6456 views

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.
Best answer by joerghoh

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

Lokesh_Shivalingaiah
Level 10
October 16, 2015

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 ? 

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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

Level 2
July 12, 2021

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?