Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to gzip SVG files served from the DAM?


Level 8

Dareboost is saying we should be gzipping our SVG files (from DAM). Any suggestions how we can do this, e.g. in dispatcher or OSGi files?  Its the cloud AEM version, so somewhat limited.

0 Replies


Community Advisor

Hi @TB3dock ,

        Overlay Adobe granite HTML client Library configuration in your code and update the configuration as per the requirement.

Means enabled gzip compression so it will be apply to the all type of images.





Community Advisor

Hi @TB3dock 


You can enable mod_deflate module on your apache webserver and it will compress everything.


LoadModule deflate_module modules/


Refer the link here:


For enabling gzip compression for CSS/JS, please set


on com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl OSGi configuration as well.




Level 8

Hi, we dont have an apache server, unfortunately, we are using the Cloud version of AEM.  I dont think we can use LoadModule.

Regarding the 


setting - the system is already gziping some assets, its just not zipping svg files. We need a way to zip sgv files.