AEMaaCS not caching images at dispatcher | Community
Skip to main content
New Member
November 30, 2021

AEMaaCS not caching images at dispatcher

  • November 30, 2021
  • 1 reply
  • 1023 views

I am using default cache file on my AEMaaCS instance, which is enable to cache everything

 

/0000 {
/glob "*"
/type "allow"
}

I noticed that images are not cache at dispatcher level? Anyone faced this issue with AEMaaCS. It is working on my local setup and images is rendered from Cache.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

VeenaVikraman
Community Advisor
Community Advisor
November 30, 2021

Did you check https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/content-delivery/caching.html?lang=en

 

I could read something like below in this document 

 

Images and any content large enough stored in blob storage

  • by default, not cached

  • can be set on a finer grained level by the following apache mod_headers directives:

       <LocationMatch "^/content/.*\.(jpeg|jpg)$">
         Header set Cache-Control "max-age=222"
         Header set Age 0
       </LocationMatch>
    
    

    See the discussion in the html/text section above for exercising caution to not cache too widely and also how to force AEM to always apply caching with the “always” option.

    It is necessary to ensure that a file under src/conf.dispatcher.d/cache has the following rule (which is in the default configuration):

    /0000
    { /glob "*" /type "allow" }
    
    

    Make sure that assets meant to be kept private rather than cached are not part of the LocationMatch directive filters.