From 6a3282cbc4021c2e531399b0dad26327fc5624bc Mon Sep 17 00:00:00 2001 From: Blueprint Coding <130100872+BlueprintCoding@users.noreply.github.com> Date: Fri, 7 Jul 2023 13:44:01 -0600 Subject: [PATCH] Update silerotts.js - Fixed Caching issue in some browsers Added this line to disable caching of file so new files are always played instead of browser cached versions. --- public/scripts/extensions/tts/silerotts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/scripts/extensions/tts/silerotts.js b/public/scripts/extensions/tts/silerotts.js index b14b6359d..c70d73ff6 100644 --- a/public/scripts/extensions/tts/silerotts.js +++ b/public/scripts/extensions/tts/silerotts.js @@ -109,7 +109,8 @@ class SileroTtsProvider { { method: 'POST', headers: { - 'Content-Type': 'application/json' + 'Content-Type': 'application/json', + 'Cache-Control': 'no-cache' // Added this line to disable caching of file so new files are always played - Rolyat 7/7/23 }, body: JSON.stringify({ "text": inputText,