You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
[Bug]: Folder preview thumbnails permanently show loading spinner for newly uploaded assets Module #1105
When uploading images to an asset folder and viewing them in the Preview tab, thumbnails that haven't been generated yet show a loading spinner (video-loading.gif) that never resolves, even after the thumbnail has been generated by the messenger worker. The spinner persists until the user does a hard browser refresh (Ctrl+F5) or switches to the List view.
Root Cause
Two issues in AssetController::getImageThumbnailAction() at line 1179-1181:
1. Placeholder response is cacheable
When origin=folderPreview and the thumbnail doesn't exist yet, the controller returns video-loading.gif as a BinaryFileResponse without Cache-Control: no-store headers. The browser caches this response.
The getFolderContentPreviewAction generates thumbnail URLs using the asset's modificationDate as the _dc cache-buster parameter (e.g. _dc=1774887063). Since this timestamp never changes for the same asset, subsequent requests hit the browser cache and serve the cached spinner forever.
2. No async thumbnail generation is dispatched
For origin=treeNode, the controller dispatches AssetPreviewImageMessage to trigger async thumbnail generation. But for origin=folderPreview, no message is dispatched — the thumbnail is only generated if/when the pimcore_asset_update worker processes it independently.
Steps to Reproduce
Open the Pimcore admin UI
Create a new asset folder
Upload 5-6 images (e.g. JPEG, 3-600KB each)
Open the folder → click Preview tab
Observe: some images show the loading spinner, others may show correctly (depends on timing)
Wait 30+ seconds (worker generates thumbnails)
Reload the page → spinners persist
Switch to List view → all thumbnails display correctly
Set Cache-Control: no-store : prevents the browser from caching the placeholder spinner, so the next request hits the server and gets the real thumbnail
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.
Activity
jcPimcore commentedon Aug 13, 2026
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.