cf-workers-query
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -0,1 +1,12 @@ | ||
## 0.6.3 (2024-09-02) | ||
### 🩹 Fixes | ||
- **cache-api:** response headers immutability handling ([b399660](https://github.com/anymaniax/cf-workers-query/commit/b399660)) | ||
### ❤️ Thank You | ||
- Victor Bury | ||
## 0.6.2 (2024-09-02) | ||
@@ -2,0 +13,0 @@ |
{ | ||
"name": "cf-workers-query", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Automatically cache and revalidate data in Cloudflare Workers. Using the Cache API and Execution Context", |
@@ -57,3 +57,3 @@ export const CACHE_URL = 'INTERNAL_CF_WORKERS_QUERY_CACHE_HOSTNAME.local'; | ||
if (value instanceof Response) { | ||
const response = value; | ||
const response = new Response(value.body, value); | ||
response.headers.append('cache-control', `max-age=${maxAge}`); | ||
@@ -60,0 +60,0 @@ await cache.put(cacheKey, response); |
23928