I have a situation where there is an image uploaded to a page with the cq/gui/components/authoring/dialog/fileupload component using the uploadUrl property = ${suffix.path}. This image gets cached (based on our dispatcher rules) for 2 hours, which is fine. However, when the image gets swapped out for a new one, we have to wait upwards of 2 hours for it to change because the file name is not updated. It would be nice to keep the long cache of this image, but bust it when the image changes. One way to do this would be to add a version number or UUID of some sort to the upload file name. Is this possible in the cq:dialog XML? Something like
uploadUrl="${suffix.path}.${generate.uuid}"
would be nice in this situation.