Skip to content
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

Embeded WYSIWYG image shows old version of the image #15309

Open
sensedrive opened this issue Aug 29, 2022 · 3 comments
Open

Embeded WYSIWYG image shows old version of the image #15309

sensedrive opened this issue Aug 29, 2022 · 3 comments

Comments

@sensedrive
Copy link
Contributor

Describe the Bug

After replacing the image in the library, WYSIWYG still shows the old version of the image.

To Reproduce

  1. Add image in WYSIWYG fields
  2. Change the original source in the library
  3. The image inside in WYSIWYG editor is still the old one

Errors Shown

No errors are shown

What version of Directus are you using?

9.15.1

What version of Node.js are you using?

16

What database are you using?

mariadb

What browser are you using?

Chrome

How are you deploying Directus?

locally

@br41nslug
Copy link
Member

This is due to browser caching and should only be a visual thing, the url doesnt change when replacing the file so the browser doesnt fetch the image again, once refreshed this should no longer be the case right?

@sensedrive
Copy link
Contributor Author

Thank you for the quick response!

The file url does not change, true. I completely deleted the browser cache and it now shows the new image.

It seems to me there is a cachebuster appendix missing at the url (file create/update time). I have a Gatsby Preview conntected to Directus. There I am parsing the html content of images (geeting the Directus file ID). In addition to the WYSIWYG issue, It would be also helpful to have a cachebuster there.

@rijkvanzanten
Copy link
Member

Linear: ENG-199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants