Fix cacheKey Request constructor - don't pass original request
This commit is contained in:
@@ -520,7 +520,7 @@ export default {
|
|||||||
request.headers.get('Cache-Control') === 'no-cache';
|
request.headers.get('Cache-Control') === 'no-cache';
|
||||||
|
|
||||||
// 캐시 키 생성
|
// 캐시 키 생성
|
||||||
const cacheKey = new Request(`https://cache.internal/${customer}${filePath}`, request);
|
const cacheKey = new Request(`https://cache.internal/${customer}${filePath}`);
|
||||||
const cache = caches.default;
|
const cache = caches.default;
|
||||||
|
|
||||||
// 1. 캐시에서 먼저 확인 (바이패스가 아닌 경우)
|
// 1. 캐시에서 먼저 확인 (바이패스가 아닌 경우)
|
||||||
|
|||||||
Reference in New Issue
Block a user