Fix gallery not being refreshed correctly#9760
Conversation
|
|
stable-diffusion-webui/modules/ui_tempdir.py Lines 34 to 54 in 22bcc7b You mean this? I noticed that |
|
The solution I had in mind was to add the question mark with time just before the image is served, not to the |
|
@AUTOMATIC1111 The Replace preview image functionality is also broken and looks like it needs a similar fix a3cdf9a. |
|
It also breaks "Save" button - either implementation. I reverted the change because this for sure will also break a bunch of extensions. There should be a better solution than this. |
|
I put it to you that this is not caused by browser cache:
The expectation after 5 if the browser cache is at fault is that the image will change to the the image produced in step 3, since it is what is in the cache currently. Reality is you'll still see the initial image from step 2. |
|
I guess it is cache, the browser does not even make a request. |
|
The preview function seems to be broken, the preview image is cracked |




I'm hoping that by pushing this pr the issue of the results gallery not refreshing properly will be resolved, close #8162.
According to the test, the browser uses the cache and the results are not loaded correctly. The current fix is not perfect, if you have a more perfect way welcome to add.