[backport rh-test] [perf] disable cache-busting param on cloud (#6119)

Backport of #6105 to `rh-test`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6119-backport-rh-test-perf-disable-cache-busting-param-on-cloud-2906d73d3650810b988ecd084b9f86bf)
by [Unito](https://www.unito.io)

Co-authored-by: Christian Byrne <cbyrne@comfy.org>
This commit is contained in:
Comfy Org PR Bot
2025-10-18 17:48:44 +09:00
committed by GitHub
parent 32e6cfa95f
commit ed8b17e777
2 changed files with 4 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
import type { ResultItemType } from '@/schemas/apiSchema'
import { api } from '@/scripts/api'
import { app } from '@/scripts/app'
/**
* Format time in MM:SS format
@@ -23,10 +24,6 @@ export function getAudioUrlFromPath(
return api.apiURL(getResourceURL(subfolder, filename, type))
}
function getRandParam() {
return '&rand=' + Math.random()
}
export function getResourceURL(
subfolder: string,
filename: string,
@@ -36,7 +33,7 @@ export function getResourceURL(
'filename=' + encodeURIComponent(filename),
'type=' + type,
'subfolder=' + subfolder,
getRandParam().substring(1)
app.getRandParam().substring(1)
].join('&')
return `/view?${params}`