stash/pkg/image
Abdu Dihan 52bd9392fb
Fix stale browser-cached thumbnails after file content changes during scan. (#6622)
* Fix stale thumbnails after file content changes

When a file's content changed (e.g. after renaming files in a gallery),
the scan handler updated fingerprints but did not bump the entity's
updated_at timestamp. Since thumbnail URLs use updated_at as a cache
buster and are served with immutable/1-year cache headers, browsers
would indefinitely serve the old cached thumbnail.

Update image, scene, and gallery scan handlers to call UpdatePartial
(which sets updated_at to now) whenever file content changes, not only
when a new file association is created.
2026-03-02 15:53:02 +11:00
..
delete.go FR: Add Interfaces to Destroy File Database Entries (#6437) 2026-01-27 16:02:47 +11:00
export.go Backend support for image custom fields (#6598) 2026-02-24 07:41:40 +11:00
export_test.go Backend support for image custom fields (#6598) 2026-02-24 07:41:40 +11:00
filter.go Selective clean (#2125) 2021-12-16 13:28:44 +11:00
import.go Backend support for image custom fields (#6598) 2026-02-24 07:41:40 +11:00
import_test.go Backend support for image custom fields (#6598) 2026-02-24 07:41:40 +11:00
query.go Gallery cover url (#5182) 2024-09-03 16:31:55 +10:00
scan.go Fix stale browser-cached thumbnails after file content changes during scan. (#6622) 2026-03-02 15:53:02 +11:00
scan_test.go Fix stale browser-cached thumbnails after file content changes during scan. (#6622) 2026-03-02 15:53:02 +11:00
service.go Add package docs and project vision/goals (#5169) 2024-08-28 09:01:39 +10:00
thumbnail.go Feature Request: Vips AVIF Support (#6337) 2025-11-28 15:00:23 +11:00
update.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
vips.go Feature Request: Vips AVIF Support (#6337) 2025-11-28 15:00:23 +11:00
webp.go Don't generate thumbnails for webp (#2388) 2022-03-20 17:48:52 +11:00
webp_internal_test.go Don't generate thumbnails for webp (#2388) 2022-03-20 17:48:52 +11:00