From 8203ce0cac79d84b4ecafc8378c83cdf5b21b68f Mon Sep 17 00:00:00 2001 From: Forkoz <59298527+Ph0rk0z@users.noreply.github.com> Date: Wed, 5 Apr 2023 12:25:01 -0500 Subject: [PATCH] Stop character pic from being cached when changing chars or clearing. (#798) Tested on both FF and chromium --- modules/html_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/html_generator.py b/modules/html_generator.py index e5c0bb56..448c20c2 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -155,7 +155,7 @@ def generate_cai_chat_html(history, name1, name2, reset_cache=False): output = f'
' # The time.time() is to prevent the brower from caching the image - suffix = f"?{time.time()}" if reset_cache else '' + suffix = f"?{time.time()}" if reset_cache else f"?{name2}" img_bot = f'' if Path("cache/pfp_character.png").exists() else '' img_me = f'' if Path("cache/pfp_me.png").exists() else ''