Integration issue with media entity file replace

Created on 30 April 2024, 11 months ago

Problem/Motivation

After regenerating image style cache for an Image media entity, anonymous traffic sees new image while authenticated sees old.

Steps to reproduce

Assumptions:

  • flush_single_image, media_entity_file_replace and view_modes_display are installed and enabled
  • A basic page with a body that allows adding Drupal media, media has different view modes that leverage different image styles
  1. Create a new node with body field that has a media image
  2. Save and view page
  3. View the media entity form, replace the file
  4. Regenerate all image style
  5. As an anonymous user, confirm new image
  6. As an authenticated user, confirm old image

Here is what anonymous user sees (new image):

Here is what an authenticated user sees (old image):

Oddly enough, when I look at my view modes via view_modes_display, it shows the updated image:

However, on the media edit form it will show the old image even though if I right click and open in a new tab it will show the new image

Proposed resolution

TBD

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States robpowell Boston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024