perf: implement proper LRU Cache and ETag optimizations
This commit is contained in:
@@ -28,6 +28,12 @@ export function middleware(request: NextRequest) {
|
||||
});
|
||||
|
||||
response.headers.set('Content-Security-Policy', cspDirectives);
|
||||
response.headers.set('X-DNS-Prefetch-Control', 'on');
|
||||
response.headers.set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains; preload');
|
||||
response.headers.set('X-Frame-Options', 'SAMEORIGIN');
|
||||
response.headers.set('X-Content-Type-Options', 'nosniff');
|
||||
response.headers.set('Referrer-Policy', 'origin-when-cross-origin');
|
||||
response.headers.set('Permissions-Policy', 'camera=(), microphone=(), geolocation=()');
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user