From 2b32b50d57c9eb0ab3e68a11387c029545f1a774 Mon Sep 17 00:00:00 2001 From: jackmered Date: Mon, 4 Nov 2024 19:39:43 +0000 Subject: [PATCH] Fixed bug where ResponseCache was not deleted during a GET request (#110) --- package-lock.json | 4 ++-- src/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index dc1a79a..a5c0455 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@imacrayon/alpine-ajax", - "version": "0.9.0", + "version": "0.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@imacrayon/alpine-ajax", - "version": "0.9.0", + "version": "0.10.0", "license": "MIT", "devDependencies": { "@11ty/eleventy": "^2.0.0", diff --git a/src/index.js b/src/index.js index 84e8337..1c2dea3 100644 --- a/src/index.js +++ b/src/index.js @@ -391,7 +391,7 @@ async function send(control, action = '', method = 'GET', body = null, enctype = return mergeContent() }) - ResponseCache.delete(action) + ResponseCache.delete(request.action) let render = await Promise.all(renders)