Dear All,
How can we update image in DAM so that its versioned file can automatically be referenced in the html.
Suppose I have uploaded an Image XYZ.jpg and have given path in html as
Please note, browser cache cannot be disabled at server, its necessary to keep that
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
You can set caching headers appropriately in apache to invalidate the browser cache after the time to live (max-age) value expires. However, It is not good for page performance to set low TTL values for browser cache.
<LocationMatch "^\.*.(jpeg|jpg)$"> Header set Cache-Control "max-age=222" Header set Age 0 </LocationMatch>
You need to write a custom workflow which will update the node where image is authored whenever there is update in dam.
Hi @NaziyaP ,
In this scenario, you need to go for customised solution.
This cannot be achieved straight forward since image name differs aem stores the copy of image and doesn't replace the same.
<img src=" ${dynamic path}" />
So steps would be,
Views
Replies
Total Likes
Hi @NaziyaP,
we have One option available OOB, "Move" you can achieve this.
With Move option you can rename the image and it will update the reference as well without any issue but it will ask you to update the location of image, that might not be the case in your scenario.
This will help you to handle the scenario without any code change.
One more ooption you have that is ACS Named Transformed Image Servlet.
Hope this will help.
Umesh Thakur
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies