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

clean image preview cache after rotate #7460

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Michael18811380328
Copy link
Contributor

@Michael18811380328 Michael18811380328 commented Feb 14, 2025

After rotating the image, avoid using browser cache and load a new image from the server:

  1. First loading: Before opening an image, we don't know if it has been rotated or if there is an old image cache locally, so we initialize it with a timestamp to ensure that the existing cache is cleared.
  2. After rotating the image: reset the timestamp to ensure that the latest thumbnail is obtained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant