Skip to content

fix: keep sitemap modification dates stable - #162

Open
efegokdemir wants to merge 2 commits into
StellarTickets:mainfrom
efegokdemir:codex/stable-sitemap-last-modified
Open

efegokdemir wants to merge 2 commits into
StellarTickets:mainfrom
efegokdemir:codex/stable-sitemap-last-modified

Conversation

@efegokdemir

Copy link
Copy Markdown

Summary

Stop reporting the current request time as the lastModified value for every sitemap entry. Crawlers can otherwise see unchanged pages as freshly modified on every request.

Changes

  • Use a stable content date for the sitemap entries.
  • Document the update point beside the constant.
  • Add a regression test proving repeated sitemap generation returns identical modification dates.

Testing

  • git diff --check — passed.
  • npm ci / npm test -- --run src/app/sitemap.test.ts — local dependency setup did not produce a usable node_modules tree, so no local test pass is claimed.
  • Netlify and repository checks will validate the change in CI.

Fixes #122

@netlify

netlify Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for stellartickets ready!

Name Link
🔨 Latest commit 6733155
🔍 Latest deploy log https://app.netlify.com/projects/stellartickets/deploys/6ae13e5ef8fd6381a351619b
😎 Deploy Preview https://deploy-preview-162--stellartickets.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sitemap.ts reports lastModified: new Date() for every route on every request

1 participant