Revert "add mtime to served images in gallery to prevent cache from showing old images"

This reverts commit 669b518cbd.
This commit is contained in:
AUTOMATIC 2023-05-08 12:18:22 +03:00
parent 18fb2162a4
commit f62540b2d2

View File

@ -36,7 +36,7 @@ def save_pil_to_file(pil_image, dir=None):
if already_saved_as and os.path.isfile(already_saved_as): if already_saved_as and os.path.isfile(already_saved_as):
register_tmp_file(shared.demo, already_saved_as) register_tmp_file(shared.demo, already_saved_as)
file_obj = Savedfile(f"{already_saved_as}?{os.path.getmtime(already_saved_as)}") file_obj = Savedfile(already_saved_as)
return file_obj return file_obj
if shared.opts.temp_dir != "": if shared.opts.temp_dir != "":