Skip to content

Update external assets are aggressively cached in web #6955

Closed as duplicate

Description

@etnoy

The bug

When updating an external asset and refreshing the library, there is very aggressive caching on the web that prevents it from being shown to the user. This caching works fine for upload libraries but not external libraries.

We need to be smarter about caching external assets.

This is a known issue and is documented in the external library docs but we should still fix it

The OS that Immich Server is running on

N/A

Version of Immich Server

v1.94.1

Version of Immich Mobile App

N/A

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

-

Your .env content

-

Reproduction steps

1. Scan external library
2. Change metadata of an asset
3. Rescan
4. Nothing changes in web view

Additional information

No response

Activity

  1. self-assigned this
    on Feb 6, 2024
  2. pyorot commented on Jun 22, 2024

    @pyorot
    Contributor

    there is a lot of failed cache invalidation in immich, and idk how it should be fixed

    another example that comes to mind is when a person thumbnail is changed, it changes the thumbnail on that person's page yet going back to the /people page shows the old thumbnail

    but yes, i've also had this problem where i transcoded an incompatible video, and after jobs completed, immich asset viewer didn't see the new version of the video for a while so wouldn't play it

  3. etnoy commented on Apr 1, 2025

    @etnoy
    CollaboratorAuthor

    I'm not sure we should close this one, I think this issue is the catch all for cache invalidation. Let's make the other issues a dupe of this one

  4. danieldietzler commented on Apr 1, 2025

    @danieldietzler
    Member

    @etnoy It's not just about external libraries though. So this issue doesn't tell the whole story. The other one is more generic IMO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions