Adam:
Is this the same image or different images which have the same name? What'ts the point?
These are different images in the different folders, but its names are identical. Feeling that the cache key is generated only from the file name.
Adam:
Are you able to reproduce this issue in the above example? Which version are you using?
There is no error in your example, it's happens only in my localhost. I'll try to specify the problem later.