Adaptive Image & Cache Issue
Adaptive image component creates following path for the image being used:
/content/geometrixx-media/en/events/the-lineup-you-ve-been-waiting-for/jcr:content/article-content-par/adaptive_image.adapt.620.high.jpg
Consider following authoring scenarios for a page where 3 adaptive image components have been dropped:
1. 2 of the images which were dropped on 2 adaptive image components are in the same folder inside /content/dam.
2. The third one is uploaded from author’s local machine.
Now if I look at the <img src> of all these 3 adaptive image components, these will be
/content/geometrixx-media/en/events/the-lineup-you-ve-been-waiting-for/jcr:content/article-content-par/adaptive_image.adapt.620.high.jpg
/content/geometrixx-media/en/events/the-lineup-you-ve-been-waiting-for/jcr:content/article-content-par/adaptive_image_0.adapt.620.high.jpg
/content/geometrixx-media/en/events/the-lineup-you-ve-been-waiting-for/jcr:content/article-content-par/adaptive_image_1.adapt.620.high.jpg
Which is a big issue since:
1. Same image will be duplicated across all the pages where it was dropped. And there is no clear separation of assets from pages will prevent me optimizing this model further had it been separated.
2. Cache issues-
• Generally images are highly static in nature once created so they should have a different TTL than pages which is not possible in this case since my images are getting cached under the page’s jcr:content which gets deleted if we activate that page. If the same image is used across many pages, this would mean getting that images multiple times from CQ.
• If author updates an image through damadmin which is being used on a page, page will never get flush invalidation and so never know that image was changed since it has the local cache of that image.
• If author uploads this from local machine this is always getting created under that page node, can we get this created under /content/dam OUT-OF-THE-BOX?
Please let me know how can we solve these before we actually use adaptive image.