AEM Edge Delivery Service, controlling cache controls and TTL | Community
Skip to main content
Level 6
December 6, 2024
Solved

AEM Edge Delivery Service, controlling cache controls and TTL

For an AEM Edge Delivery Service website, how do we customize how long a .jss .css .pdf .png .jpeg file types get cached?, we want to set up custom configuration for each file extension, how can this be done?

arunpatidar
arunpatidarAccepted solution
New Participant
December 6, 2024

Hi @supportmember 

You can add custom cache-control header using headers sheet

https://www.aem.live/docs/custom-headers 

Arun Patidar

3 replies

arunpatidar
arunpatidarAccepted solution
New Participant
December 6, 2024

Hi @supportmember 

You can add custom cache-control header using headers sheet

https://www.aem.live/docs/custom-headers 

Translate
Arun Patidar
New Participant
March 13, 2025

Hi Arun,

I was able to follow the document from given link and able to add custom headers from .helix/headers - 

 

Custom headers which are working

url                                Key                    Value
**                              Publisher               EDS

 

but could not get that working for "cache-control":"max-age=120, public". 

 

url                                Key                    Value
**                              Cache-Control      max-age=120,public

 

 

Can you please guide me here If I am doing anything wrong.

Translate
arunpatidar
New Participant
March 13, 2025

Hi @pradeepmc1 

Are you trying on local Setup or with actual domain?

Seems cache-control header is being overriden by CDN , example https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/edge-delivery/launch/byo-cdn-akamai-setup#addmodify-behavior-caching 

Translate
Arun Patidar