This commit is contained in:
seb
2026-10-05 15:56:41 +02:00
parent 81620521e7
commit bac2d9a202
5 changed files with 96 additions and 8 deletions

View File

@@ -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/')) {