Expand my Community achievements bar.

SOLVED

Caching asset url in dispatcher

Avatar

Level 3

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 ?

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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