Don't cache API requests (#415)

API requests should by default never be cached
This commit is contained in:
Alex "mcmonkey" Goodwin
2024-08-13 17:22:22 -07:00
committed by GitHub
parent 1b59e3ab6d
commit 64ee131e64

View File

@@ -54,6 +54,9 @@ class ComfyApi extends EventTarget {
if (!options.headers) {
options.headers = {}
}
if (!options.cache) {
options.cache = 'no-cache'
}
options.headers['Comfy-User'] = this.user
return fetch(this.apiURL(route), options)
}