-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: Thumbnail doesn't update when source image is changed #44630
Comments
Are you certain it's not your browser that simply cached the thumbnail? Force a refresh (e.g. in Chrome, press Ctrl-F5 to force a reload of images). |
It happens on the macOS app, desktop (chrome or safari) which leads me to believe it might be a caching thing. |
Actually, I experience the same. And I need manually click Ctrl-F5 each time after modifying the file. |
NextCloud tells the browser that it can rely on the cached version for 24 hours, and only has to re-check with the server (with a conditional request) after that time has passed:
|
But if the source image changes, shouldn't there be a trigger where the thumbnail gets redone? I swear that used to happen years ago. |
The thumbnail probably gets redone, but your browser does not ask the server for it, only after 24 hours or when you press Ctrl+F5. The server sends a |
Cc @nextcloud/server-frontend |
You can't Ctrl+F5 on an iPad or Android phone though? |
That is a bad behaviour. There are online graphic editors which easily update the picture on the fly. Why it is not possible to do that in this app? |
We usually add an etag to the preview fetch. At least the web interface does. @rightsaidfred99 you mentionned the ipad, you mean with the NC iOS/macOS app? |
@skjnldsv yes, the iOS app specifically. But the same thing also happens on the web interface I guess. |
Ah, it seems the webalso needs a fix, I thought we fixed it 🤔 |
@skjnldsv: The etag will not help here: Because of the |
This is very bad and can lead to very high load of your webserver if you load a directory with a lot of images and navigation fast (and you have a large user base). Instead we can use some kind of tag on the url like |
Bug description
If you upload an image to Nextcloud (via external storage), the thumbnail will load as normal.
However when you replace the source image, Nextcloud will sitll use the old thumbnail for the image.
This wasn't the case a few years ago
Steps to reproduce
Expected behavior
NC should always be showing the thumbnail that represents the source image
Installation method
Community Docker image
Nextcloud Server version
28
Operating system
Other
PHP engine version
PHP 8.3
Web server
None
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: