From 64ee131e64261ad9160ce9b6f7b20b900eba6b35 Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" <4000772+mcmonkey4eva@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:22:22 -0700 Subject: [PATCH] Don't cache API requests (#415) API requests should by default never be cached --- src/scripts/api.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/api.ts b/src/scripts/api.ts index b97076c04a..69aa309abb 100644 --- a/src/scripts/api.ts +++ b/src/scripts/api.ts @@ -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) }