Skip to content

[BUG] Change persona image - Upload successfull but loaded from browser cache #1745

@stho90

Description

@stho90

Environment

Self-Hosted (Bare Metal)

System

Tested on: Debian 11.8, Win11

Version

v1.11.2 (release)

Desktop Information

Firefox v122

Describe the problem

I wanted to change my own char picture, found in "Persona Management".
There, i clicked on my own persona and selected "Change persona image".
Then i selected a .png (and tested it with .jpeg) and the "Set the crop" window appeared. I did not change the size and selected "Accept".

But the picture did not change in the frontend, even if i pressed F5.

Here is the example:

I wanted to change the picture:
grafik

Then i selected a picture and pressed Accept:
grafik

After pressing F5, the old picture was still there. It seems that the picture was stored in the browser cache and is not marked as "Expired" from the webserver. (If i use F12 and select "Disable cache" and refresh the page, then the correct picture is shown)

grafik

After some searching, i found the following: https://stackoverflow.com/a/22013028
Quote:

...
What you probably need to fix, is to add Expires headers to what you are serving. 
Then you will see the NS_BINDING_ABORTED message change to (cache), 
meaning the browser is simply getting content out of its cache, knowing it has not yet expired.
...

Additional info

No response

Please tick the boxes

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚰️ Stale[ISSUE][PR][🎯Auto-applied] No activity for some time🐛 Bug[ISSUE] Ticket describing something that isn't working🕸️ Inactive[ISSUE][🎯Auto-applied] Ticket was stale and received no response. Applied on closing.🦊 Firefox[ISSUE][PR] Related to Firefox - or the user uses Firefox

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions