New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace file doesn't remove previously generated thumbnails #17477
Comments
Linear: ENG-682 |
Maybe this bug can be considered along side with #13559 |
This seems to be caused by |
The /assets endpoint already allows any arbitrary text behind the UUID, so you could do this as-is 👍🏻 |
So after a little bit of research I found a couple of approaches we could take here but first, let's specify exactly whats happening.
Technically, if
the browser will see the new resource. Going further along without the mentioned options:
What we could do
This'd allow to always get the latest resource but with the cost of an extra request. Probably for most people the following would be best:
Messing with caches can and will impact every Directus instance so I'd love to be very careful with this. In my opinion this is more of an improvement/optimization than a current bug, because like I said, we actually do remove previously generated thumbnails and the user could implement cachebusting via parameters or set I'd close this and open a feature request with my findings in case people want to vote for conditional requests, thoughts @rijkvanzanten ? |
That makes sense 👍🏻 |
Created a discussion for this on #19768 |
Describe the Bug
Replacing an image with another image doesn't invalidate the other variant images generated through transformation presets.
To Reproduce
Errors Shown
No response
What version of Directus are you using?
9.22.4
What version of Node.js are you using?
Docker
What database are you using?
PG 14
What browser are you using?
Edge
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered: