Skip to content

Commit ce7ad2b

Browse files
committed
Fix cache bust busting our own cache
1 parent 66399ae commit ce7ad2b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

site/src/contexts/useProxyLatency.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,9 @@ export const useProxyLatency = (proxies?: RegionsResponse): Record<string, Proxy
114114
// The resource requests include xmlhttp requests.
115115
observer.observe({ entryTypes: ["resource"] })
116116

117-
const proxyRequests = proxies.regions.map((proxy) => {
118-
const url = new URL("/latency-check", proxy.path_app_url)
117+
const proxyRequests = Object.keys(proxyChecks).map((latencyURL) => {
119118
return axios
120-
.get(url.toString(), {
119+
.get(latencyURL, {
121120
withCredentials: false,
122121
// Must add a custom header to make the request not a "simple request"
123122
// https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests

0 commit comments

Comments
 (0)