Skip to content

fix(web): serve /sitemap.xml with Last-Modified header (web 0.40.3) - #516

Merged
kroqdotdev merged 1 commit into
mainfrom
fix/sitemap-last-modified-header
Oct 20, 2026
Merged

kroqdotdev merged 1 commit into
mainfrom
fix/sitemap-last-modified-header

Conversation

@kroqdotdev

Copy link
Copy Markdown
Owner

Summary

  • Replace Next.js MetadataRoute.Sitemap (apps/web/app/sitemap.ts) with an explicit Route Handler (apps/web/app/sitemap.xml/route.ts) so /sitemap.xml includes a Last-Modified HTTP response header set to the newest sitemap entry timestamp (latestModified.toUTCString()), matching statoss.com and ouicu.com.
  • Assert the presence and validity of the Last-Modified header in apps/web/scripts/seo-smoke.mjs and apps/web/app/sitemap.xml/route.test.ts.
  • Fix the flaky insufficient_work assertion in apps/web/lib/agent/pow.test.ts so it deterministically picks a nonce without c.difficulty leading zero bits for sub-puzzle 0.
  • Bump web version to 0.40.3.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f72831b6-233c-4c05-a618-0c51544fc902
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@kroqdotdev
kroqdotdev merged commit 81e7371 into main Oct 20, 2026
20 checks passed
@kroqdotdev
kroqdotdev deleted the fix/sitemap-last-modified-header branch October 20, 2026 15:02
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.

1 participant