April 19, 2020
Estimated Post Reading Time ~

How to enabling Gzip in AEM/dispatcher/web

Enable gzip compression in AEM
Compressing javascript resources with gzip could reduce their transfer size by about two thirds. You can enable gzip in OSGi configuration as well from the ConfigMgr for 'Adobe Granite HTML Library Manager'.



Enable gzip compression in Webserver: 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. When you use apache, you can use the usual mod_deflate.

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

Note: Currently only the gzip format is supported. It is available only applicable to 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" }
}


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.