From b008ce10076e85bf999f4b24e5e224bdb8a86944 Mon Sep 17 00:00:00 2001 From: Eslam Salem Date: Mon, 18 Mar 2024 15:19:27 +0100 Subject: [PATCH] adding method to the caching key to make it more unique --- libs/randomizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/randomizer.js b/libs/randomizer.js index ab95b4f..b747ba7 100644 --- a/libs/randomizer.js +++ b/libs/randomizer.js @@ -72,7 +72,7 @@ const render = (httpRequest, contents, vars, enableCache) => { let renderedContents; //check cache first - let cacheKey = Cache.key(httpRequest.path); + let cacheKey = Cache.key(httpRequest.path + httpRequest.method); let res = Cache.get(cacheKey); if (res) { return replaceUncachableVariables(res);