``` const cache key c req url

const cache_key = c.req.url
let response = await caches.default.match(cache_key)


if (response) {
console.debug('Cached')
return response
}
const cache_key = c.req.url
let response = await caches.default.match(cache_key)


if (response) {
console.debug('Cached')
return response
}
1 Reply
kika
kika17mo ago
Trace: TypeError: Can't modify immutable headers.
at index.js:5875:22
at set res [as res] (index.js:5874:25)
Trace: TypeError: Can't modify immutable headers.
at index.js:5875:22
at set res [as res] (index.js:5874:25)
I don't set any headers. I store a headers with the response though when I do put() If I do console.dir() on the response object returned from the cache on a local server I get [ 'Response', '{\n\n}' ] regardless of what I put() into the cache before
Want results from more Discord servers?
Add your server