From 786c7ff691750d5b9a9d29fb41a28efc8c0b9f3b Mon Sep 17 00:00:00 2001 From: ed_it Date: Mon, 20 Apr 2026 04:36:54 +0000 Subject: [PATCH] seo: redirect /sitemap.xml to /sitemap-index.xml; short TTL for robots+sitemap --- public/_headers | 8 ++++++++ public/_redirects | 1 + 2 files changed, 9 insertions(+) create mode 100644 public/_headers create mode 100644 public/_redirects diff --git a/public/_headers b/public/_headers new file mode 100644 index 0000000..542370f --- /dev/null +++ b/public/_headers @@ -0,0 +1,8 @@ +/robots.txt + Cache-Control: public, max-age=300, must-revalidate + +/sitemap-index.xml + Cache-Control: public, max-age=300, must-revalidate + +/sitemap-0.xml + Cache-Control: public, max-age=300, must-revalidate diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..47c81ad --- /dev/null +++ b/public/_redirects @@ -0,0 +1 @@ +/sitemap.xml /sitemap-index.xml 301