no cookie
This commit is contained in:
parent
4dbddfab41
commit
a4c33a35fb
1 changed files with 2 additions and 0 deletions
|
|
@ -44,6 +44,8 @@ export async function onRequest(context) {
|
||||||
cacheResponse.headers.set('Access-Control-Allow-Origin', '*');
|
cacheResponse.headers.set('Access-Control-Allow-Origin', '*');
|
||||||
cacheResponse.headers.set('Cache-Control', 'public, max-age=2592000');
|
cacheResponse.headers.set('Cache-Control', 'public, max-age=2592000');
|
||||||
|
|
||||||
|
cacheResponse.headers.delete('Set-Cookie');
|
||||||
|
|
||||||
context.waitUntil(cache.put(cacheKey, cacheResponse.clone()));
|
context.waitUntil(cache.put(cacheKey, cacheResponse.clone()));
|
||||||
response = cacheResponse;
|
response = cacheResponse;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue