The 'replace' functionality in the filelist didn't work properly. It replaced the file, but didn't replace any references. This happened because of a cached fileExist call. When starting the replace action, the file doesn't exist yet and false is cached. After the file has been processed, it's still false in the fileExistsCache while it actually exists.
POST/PUT/PATCH/DELETE HTTP requests can modify images, so we should bypass the cache.
The 'replace' functionality in the filelist didn't work properly. It replaced the file, but didn't replace any references. This happened because of a cached fileExist call. When starting the replace action, the file doesn't exist yet and
false
is cached. After the file has been processed, it's stillfalse
in thefileExistsCache
while it actually exists. POST/PUT/PATCH/DELETE HTTP requests can modify images, so we should bypass the cache.