Caching asset url in dispatcher | Community
Skip to main content
ravir73578276
Level 3
December 15, 2023
Solved

Caching asset url in dispatcher

  • December 15, 2023
  • 1 reply
  • 496 views

I have an asset stored under this path in AEM /content/dam/myproject/images/2023/dec/4567.jpg

 

While rendering this in UI I am using shortened name like "/2023/dec/4567.jpg"

I am using rewrite rule in dispatcher to rewrite it.

But when this url is cached in AEM its is cached for the this path "/content/dam/myproject/images/2023/dec/4567.jpg" under "/var/www/html".  Instead I wanted it to cache it  for the requested url structure which is "/2023/dec/4567.jpg".

How this can be achieved ?

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 Saravanan_Dharmaraj

@ravir73578276 "/var/www/html" is the root folder for caching set in dispatcher(httpd.conf), Changing this will affect everything cached. 

1 reply

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
December 18, 2023

@ravir73578276 "/var/www/html" is the root folder for caching set in dispatcher(httpd.conf), Changing this will affect everything cached.