This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ export default {
|
||||
headers.set('etag', object.httpEtag);
|
||||
headers.set('x-content-type-options', 'nosniff');
|
||||
headers.set('referrer-policy', 'strict-origin-when-cross-origin');
|
||||
headers.set('cache-control', url.pathname.endsWith('.html') ? 'no-cache' : 'public, max-age=3600');
|
||||
headers.set('cache-control', url.pathname.endsWith('.html') || url.pathname.endsWith('.js') ? 'no-cache' : 'public, max-age=3600');
|
||||
return new Response(request.method === 'HEAD' ? null : object.body, { headers });
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
Reference in New Issue
Block a user