From 13b260e369c0ca4a7bd4aebb6de4185aac339120 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 31 Mar 2019 16:00:48 +0200 Subject: [PATCH] Fixed request url for the native client --- shared/js/FileManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/js/FileManager.ts b/shared/js/FileManager.ts index 9cc40f2f..6b4f5e8f 100644 --- a/shared/js/FileManager.ts +++ b/shared/js/FileManager.ts @@ -506,7 +506,7 @@ class CacheManager { async resolve_cached(key: string, max_age?: number) : Promise { max_age = typeof(max_age) === "number" ? max_age : -1; - const request = new Request("cache_request_" + key); + const request = new Request("https://_local_cache/cache_request_" + key); const cached_response = await this._cache_category.match(request); if(!cached_response) return undefined; @@ -516,7 +516,7 @@ class CacheManager { } async put_cache(key: string, value: Response, type?: string, headers?: {[key: string]:string}) { - const request = new Request("cache_request_" + key); + const request = new Request("https://_local_cache/cache_request_" + key); const new_headers = new Headers(); for(const key of value.headers.keys())