api/cookie: write cookies only if from-file cookie was changed

This commit is contained in:
jj 2024-11-02 18:48:26 +00:00
parent c44a5ecc89
commit 5a7635cdf7
No known key found for this signature in database

View file

@ -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);
}