Skip to content

fix(web): cache mailhooks.cc's robots.txt for four hours, not a year (web 0.62.4) - #616

Merged
kroqdotdev merged 1 commit into
mainfrom
fix/mailhooks-robots-cache
Nov 5, 2026
Merged

kroqdotdev merged 1 commit into
mainfrom
fix/mailhooks-robots-cache

Conversation

@kroqdotdev

Copy link
Copy Markdown
Owner

Why

After the 0.62.3 deploy, https://mailhooks.cc/robots.txt still served the old file from Cloudflare (cf-cache-status: HIT, age over two days), while the origin had the new one. The route is force-static and sets no Cache-Control, so Next sends s-maxage=31536000, and the proxy, which sets headers on the other static routes, skips robots.txt. Cloudflare honours that for a year.

What

  • The mailhooks.cc robots route sends Cache-Control: public, max-age=14400, the same as webhooks.cc's robots.txt.
  • The copy Cloudflare holds now still needs one purge of https://mailhooks.cc/robots.txt.
  • Web 0.62.4 with a changelog entry.

Checks

  • lib/changelog.test.ts and the sitemap tests pass; prettier clean.
  • After deploy and the purge: curl -sI https://mailhooks.cc/robots.txt shows max-age=14400 and the four Sitemap: lines.

🤖 Generated with Claude Code

…(web 0.62.4)

The route is static and set no Cache-Control, so Next sent
s-maxage=31536000, and because the proxy skips robots.txt nothing replaced
it. Cloudflare kept serving a copy from two days earlier after the 0.62.3
deploy added Sitemap lines. It now sends max-age=14400, like webhooks.cc's
robots.txt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

  • Trigger review

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

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 27bee43b-4d58-40ce-be2f-18dd6ad02982
  • 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

@github-actions

github-actions Bot commented Nov 5, 2026

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 959cbb9 into main Nov 5, 2026
28 checks passed
@kroqdotdev
kroqdotdev deleted the fix/mailhooks-robots-cache branch November 5, 2026 11:38
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