adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
730 stars 736 forks source link

Image: Include a last modification date even in publish image urls #48

Closed kwin closed 6 years ago

kwin commented 7 years ago

To allow to set a very long TTL for image urls it would be beneficial if at least optionally the publish URL (https://github.com/Adobe-Marketing-Cloud/aem-core-wcm-components/tree/master/content/src/content/jcr_root/apps/core/wcm/components/image/v1/image#url-formats) includes a last modification date of the component's node as well (similar to what we have on the author already). That way it is assured that the URL changes whenever the image changes (which will automatically invalidate the cache entry)

gabrielwalt commented 6 years ago

+1, we added that to our roadmap.

kwin commented 6 years ago

@bpauli Can you adjust the section in the readme as well (https://github.com/Adobe-Marketing-Cloud/aem-core-wcm-components/blob/master/content/src/content/jcr_root/apps/core/wcm/components/image/v1/image/README.md#url-formats)?

bpauli commented 6 years ago

@kwin Sure, thanks for the hint!