Skip to content

Commit 64ee131

Browse files
authored
Don't cache API requests (#415)
API requests should by default never be cached
1 parent 1b59e3a commit 64ee131

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/scripts/api.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ class ComfyApi extends EventTarget {
5454
if (!options.headers) {
5555
options.headers = {}
5656
}
57+
if (!options.cache) {
58+
options.cache = 'no-cache'
59+
}
5760
options.headers['Comfy-User'] = this.user
5861
return fetch(this.apiURL(route), options)
5962
}

0 commit comments

Comments
 (0)