Viktoriia 1 ano atrás
pai
commit
803dc24f3a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/utils/determineServer.ts

+ 1 - 1
src/utils/determineServer.ts

@@ -6,7 +6,7 @@ const SERVER_LIST_URL = API_URL + '/' + API.GET_SERVERS;
 const TIMEOUT = 1500;
 
 const fetchWithTimeout = (url: string, timeout = TIMEOUT) => {
-  return axios.get(url, { timeout });
+  return axios.get(url, { timeout, headers: {'Cache-Control': 'no-cache'} });
 };
 
 const testServerSpeed = async (serverUrl: string) => {