This commit is contained in:
2026-02-06 12:59:47 +01:00
parent 00597a796a
commit 53537226cd
18 changed files with 110 additions and 117 deletions

View File

@@ -104,6 +104,8 @@ export async function app(): Promise<express.Express> {
// All regular routes use the Angular engine
server.get('*', async (req, res, next) => {
console.log(`[SSR] Handling request: ${req.method} ${req.url}`);
// Cache SSR-rendered pages at CDN level
res.setHeader('Cache-Control', 'public, s-maxage=300, stale-while-revalidate=600');
try {
const response = await angularApp.handle(req);
if (response) {