[object Object]

← back to Stars of Design

starsofdesign: Cache-Control public max-age=3600 on /sitemap.xml. Mirrors asim.

0954ae883e781f6e3dcc7d88305fce9db9fbe869 · 2026-05-12 21:23:27 -0700 · Steve Abrams

Files touched

Diff

commit 0954ae883e781f6e3dcc7d88305fce9db9fbe869
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Tue May 12 21:23:27 2026 -0700

    starsofdesign: Cache-Control public max-age=3600 on /sitemap.xml. Mirrors asim.
---
 routes/public.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/routes/public.js b/routes/public.js
index d3d64bd..5c8a436 100644
--- a/routes/public.js
+++ b/routes/public.js
@@ -494,6 +494,7 @@ router.get('/sitemap.xml', async (req, res, next) => {
         `  <url><loc>${u.loc}</loc><lastmod>${today}</lastmod><changefreq>${u.changefreq}</changefreq><priority>${u.priority}</priority></url>`
       ).join('\n') +
       '\n</urlset>\n';
+    res.setHeader('Cache-Control', 'public, max-age=3600');
     res.type('application/xml').send(xml);
   } catch (e) { next(e); }
 });

← 13a504c starsofdesign: gzip compression middleware (threshold 1KB) —  ·  back to Stars of Design  ·  sod-cache-stats 571d289 →