T-Systems-MMS/phonebook

Image does not reload in chrome

DanielHabenicht opened this issue · 0 comments

Describe the bug:

Somebody, cough @Zeroks77 cough implemented a great april pun but neglected that the random variable is important :)
Nevermind, I read the if statement the other way around, so something does not seem to work.

To Reproduce:

  1. Upload a picture in chrome
  2. The picture does not change because it still gets cached.

Expected behavior:

Additional context:

this.RANDOM = Math.random().toString();
this.updateImageUrl();

The random reload feature is disabled because it only gets enabled with the feature flag on.
Either we should find a way to make both work or remove the feature flag.