Expand my Community achievements bar.

SOLVED

AEM Edge Delivery Service, controlling cache controls and TTL

Avatar

Level 7

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?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @SupportMember 

You can add custom cache-control header using headers sheet

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



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @SupportMember 

You can add custom cache-control header using headers sheet

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



Arun Patidar

Avatar

Level 1

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.

Avatar

Community Advisor

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/la... 



Arun Patidar