From 5a7635cdf7acde744178b216c5f0a3f4a6789f7f Mon Sep 17 00:00:00 2001 From: jj Date: Sat, 2 Nov 2024 18:48:26 +0000 Subject: [PATCH] api/cookie: write cookies only if from-file cookie was changed --- api/src/processing/cookie/manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/processing/cookie/manager.js b/api/src/processing/cookie/manager.js index 275f5b96..7a47685d 100644 --- a/api/src/processing/cookie/manager.js +++ b/api/src/processing/cookie/manager.js @@ -88,9 +88,9 @@ export function updateCookieValues(cookie, values) { changed = cookie.set(key, value) || changed; } - if (changed) { + if (changed && cookie.meta) { dirty = true; - if (isCluster && cookie.meta) { + if (isCluster) { const message = { cookieUpdate: { ...cookie.meta, cookie } }; cluster.send(message); }