u
This commit is contained in:
@@ -184,8 +184,8 @@ function nginxHeadersPreviewPlugin() {
|
||||
res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
|
||||
res.setHeader('Pragma', 'no-cache');
|
||||
res.setHeader('Expires', '0');
|
||||
} else if (/^\/(manifest\.webmanifest|favicon\.svg|icons\/.*)$/.test(url)) {
|
||||
// 1 hour for web manifest & icons
|
||||
} else if (/^\/(manifest\.webmanifest|favicon\.svg|icons\/.*|og-image\.png|quixpos-logo\.png)$/.test(url)) {
|
||||
// 1 hour for web manifest & icons / social share assets
|
||||
res.setHeader('Cache-Control', 'public, max-age=3600');
|
||||
res.setHeader('Vary', 'Accept-Encoding');
|
||||
} else if (url.startsWith('/assets/')) {
|
||||
|
||||
Reference in New Issue
Block a user