Set-Cookie to the end of my cache-control response headerscookies.set anywhere through my app+server.ts GET acts as an api endpoint+page.server.ts which fetch to that endpoint for datafetch+server.ts response, I do@sveltejs/adapter-cloudflare auto append private=Set-Cookie if there was another headers Set-Cookie+server.ts directly from browser or curl it, there was not Set-Cookie or private=Set-Cookie and the cache was perfectly HITSvelteJs/Kit and worktop to try that npm install on Pages Build tho worktop I guessif (isGET && isCacheable(res)) before recreating the Response tho patch-package but console.log doesn't show nothing tho console.log(Object.fromEntries(res.headers))console.log([ ...res.headers ]); is safer patch-package but can't get adapter-cloudflare to console.log() things private=Set-Cookie is somehow dissapeared now 
console.log patch broke it if (isGET && isCacheable(res)) {
if (res.headers.has('Set-Cookie')) {
res = new Response(res.body, res);
res.headers.append('Cache-Control', 'private=Set-Cookie');
}
}accept-ranges: bytes
age: 31883
cache-control: public, immutable, max-age=31536000, private=Set-Cookie
cf-cache-status: HIT
cf-ray: 85e665e1b0e66027-SIN
connection: keep-alive
content-length: 4933
content-type: application/json
date: Sun, 03 Mar 2024 03:04:14 GMT
last-modified: Sat, 02 Mar 2024 18:12:51 GMT
server: cloudflare
vary: Accept-EncodingsetHeaders({ 'cache-control': 'public, immutable, max-age=31536000' });diff --git a/node_modules/@sveltejs/adapter-cloudflare/files/worker.js b/node_modules/@sveltejs/adapter-cloudflare/files/worker.js
index a0abb18..aa4de85 100644
--- a/node_modules/@sveltejs/adapter-cloudflare/files/worker.js
+++ b/node_modules/@sveltejs/adapter-cloudflare/files/worker.js
@@ -10,6 +10,11 @@ async function e(e3, t2) {
return n2 && r3 && (r3 = new Response(null, r3)), r3;
}
function t(e3, t2, n2, o2) {
+ let tmp = '';
+ for (const [headerName, headerValue] of n2.headers.entries()) {
+ tmp += `${headerName}: ${headerValue}\n`;
+ }
+ console.log(tmp);
return ("string" == typeof t2 || "GET" === t2.method) && r(n2) && (n2.headers.has("Set-Cookie") && (n2 = new Response(n2.body, n2)).headers.append("Cache-Control", "private=Set-Cookie"), o2.waitUntil(e3.put(t2, n2.clone()))), n2;
}
var n = /* @__PURE__ */ new Set([200, 203, 204, 300, 301, 404, 405, 410, 414, 501]);diff --git a/node_modules/@sveltejs/adapter-cloudflare/files/worker.js b/node_modules/@sveltejs/adapter-cloudflare/files/worker.js
index a0abb18..2b73316 100644
--- a/node_modules/@sveltejs/adapter-cloudflare/files/worker.js
+++ b/node_modules/@sveltejs/adapter-cloudflare/files/worker.js
@@ -10,6 +10,8 @@ async function e(e3, t2) {
return n2 && r3 && (r3 = new Response(null, r3)), r3;
}
function t(e3, t2, n2, o2) {
+ console.log('headers');
+ console.log([ ...n2.headers ]);
return ("string" == typeof t2 || "GET" === t2.method) && r(n2) && (n2.headers.has("Set-Cookie") && (n2 = new Response(n2.body, n2)).headers.append("Cache-Control", "private=Set-Cookie"), o2.waitUntil(e3.put(t2, n2.clone()))), n2;
}
var n = /* @__PURE__ */ new Set([200, 203, 204, 300, 301, 404, 405, 410, 414, 501]);npm installnew Response('test', { headers: { 'x-test': 'test', 'Set-Cookie': 'test=1' } }).headers
Headers { "content-type" → "text/plain;charset=UTF-8", "x-test" → "test" }if (isGET && isCacheable(res))patch-packagepatch-packageconsole.log(Object.fromEntries(res.headers))console.log([ ...res.headers ]);