Page Compression in CQ to expedite page transfer to browser | Adobe Higher Education
Skip to main content
prohira
Level 3
October 16, 2015
Resuelto

Page Compression in CQ to expedite page transfer to browser

  • October 16, 2015
  • 4 respuestas
  • 1523 visualizaciones

Can we do some kind of compression in CQ to expedite page transfer to browser? I know we can do this for JS and CSS by minifying.

Este tema ha sido cerrado para respuestas.
Mejor respuesta de Mshaji
To activate compression, you will need to log in to your Felix console and enable the minify option.

 

  1. Go to {ServerURL}/system/console/configMgr
  2. Scroll down and click on "Day CQ HTML Library Manager"
  3. Click on the Minify checkbox
  4. (Optional) Enable Gzip

4 respuestas

MshajiCommunity AdvisorRespuesta
Community Advisor
October 16, 2015
To activate compression, you will need to log in to your Felix console and enable the minify option.

 

  1. Go to {ServerURL}/system/console/configMgr
  2. Scroll down and click on "Day CQ HTML Library Manager"
  3. Click on the Minify checkbox
  4. (Optional) Enable Gzip
joerghoh
Adobe Employee
Adobe Employee
October 16, 2015

You should configure your webservers (which have the dispatcher as module) to use HTTP compression; on the Apache HTTPD webserver you can use mod_deflate. This reduces the size of all pure text formats like CSS,JS and also HTML files. Enabling gzip compression on AEM itself is rather useless, as most of the CSS and JS are supported to be cached on the dispatcher. And as they are stored in the dispatcher cache in an uncompressed format, you need to compress them again on delivery.  Remember, HTTP compression is only to reduce bandwith usage, not to reduce the storage usage on both ends.

kind regards,
Jörg

prohira
prohiraAutor
Level 3
October 16, 2015

thanks !! I am already doing that. Any other way to compress page content and get it delivered to browser?

Community Advisor
October 16, 2015

Some other optimization techniques

Merge CSS & JS

Include JS at the bottom of HTML

Minify CSS & JS

Add caching layer

Optimize http requests

Enable http gzip compression on apache (uncomment mod_deflate.so) or any other server if you have

On apache uncomment mod_expires module