mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-19 22:34:15 +00:00
Don't cache API requests (#415)
API requests should by default never be cached
This commit is contained in:
committed by
GitHub
parent
1b59e3ab6d
commit
64ee131e64
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user