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

  • December 6, 2024
  • 1 reply
  • 809 views

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?

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

Hi @supportmember 

You can add custom cache-control header using headers sheet

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

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
December 6, 2024

Hi @supportmember 

You can add custom cache-control header using headers sheet

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

Arun Patidar
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.

arunpatidar
Community Advisor
Community Advisor
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 

Arun Patidar