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.
This commit is contained in:
Blueprint Coding
2023-07-07 13:44:01 -06:00
committed by GitHub
parent 243e89091a
commit 6a3282cbc4

View File

@@ -109,7 +109,8 @@ class SileroTtsProvider {
{ {
method: 'POST', method: 'POST',
headers: { 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({ body: JSON.stringify({
"text": inputText, "text": inputText,