Skip to content

fix: skip tracking cookie on sitemap routes#3785

Merged
idoshamun merged 1 commit intomainfrom
fix/sitemap-tracking-cookie
Apr 12, 2026
Merged

fix: skip tracking cookie on sitemap routes#3785
idoshamun merged 1 commit intomainfrom
fix/sitemap-tracking-cookie

Conversation

@idoshamun
Copy link
Copy Markdown
Member

Summary

  • Skip tracking middleware for /sitemaps routes so responses don't include Set-Cookie: da2=...
  • This allows Vercel CDN to cache sitemap responses (s-maxage=7200)
  • Every sitemap request was hitting the origin with x-vercel-cache: MISS because Set-Cookie prevents caching

Context

All sitemaps show "Couldn't fetch" in Google Search Console. Investigation found the tracking cookie is set on every sitemap response, preventing CDN caching and forcing Google to always hit the origin.

Test plan

  • Verify sitemap responses no longer include Set-Cookie header
  • Verify x-vercel-cache: HIT on subsequent sitemap requests

Sitemap responses were getting a Set-Cookie: da2=... header on every
request, preventing Vercel CDN from caching them. This caused every
Google crawl to hit the origin server (x-vercel-cache: MISS), likely
contributing to Google's "Couldn't fetch" errors in Search Console.
@pulumi
Copy link
Copy Markdown

pulumi bot commented Apr 12, 2026

🍹 The Update (preview) for dailydotdev/api/prod (at 3ce234f) was successful.

✨ Neo Explanation

Routine deployment bumping all services and cron jobs to commit `e4a69830`, with fresh DB and Clickhouse migration Jobs created for the new release. ✅ Low Risk

This is a standard application deployment rolling out a new image build (dfc244ebe4a69830) across all services. Every deployment and cron job is updated solely to point at the new container image tag and update the corresponding version labels. The two migration Jobs (DB and Clickhouse) are recreated under new names keyed to the new commit hash — this is the normal pattern for running one-off migrations on deploy.

🔵 Info — The previous migration Jobs (*-dfc244eb) are deleted and new ones (*-e4a69830) are created. Confirm this PR includes any expected schema migrations; if the new Jobs fail, the new image running against an un-migrated schema could cause errors.

The GCP credentials warning on the default_9_12_0 provider is cosmetic and does not affect Kubernetes resource operations.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-calculate-top-readers-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-history-clickhouse-cron  kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-weekly-quests-cron                       kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-daily-digest-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-digests-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-expire-super-agent-trial-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-private-deployment                              kubernetes:apps/v1:Deployment  update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-e4a69830                       kubernetes:batch/v1:Job        create
~   vpc-native-hourly-notification-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                      kubernetes:apps/v1:Deployment  update
~   vpc-native-update-tag-materialized-views-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-user-companies-cron                kubernetes:batch/v1:CronJob    update
+   vpc-native-api-clickhouse-migration-e4a69830               kubernetes:batch/v1:Job        create
~   vpc-native-materialize-monthly-best-post-archives-cron     kubernetes:batch/v1:CronJob    update
~   vpc-native-temporal-deployment                             kubernetes:apps/v1:Deployment  update
~   vpc-native-personalized-digest-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-worker-job-deployment                           kubernetes:apps/v1:Deployment  update
~   vpc-native-update-views-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-bg-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-generic-referral-reminder-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-expired-better-auth-sessions-cron         kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                          kubernetes:batch/v1:CronJob    update
~   vpc-native-user-posts-analytics-refresh-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-daily-quests-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment  update
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
-   vpc-native-api-clickhouse-migration-dfc244eb               kubernetes:batch/v1:Job        delete
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-opportunities-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-users-cron                         kubernetes:batch/v1:CronJob    update
... and 11 other changes

@idoshamun idoshamun merged commit 025d221 into main Apr 12, 2026
9 of 10 checks passed
@idoshamun idoshamun deleted the fix/sitemap-tracking-cookie branch April 12, 2026 11:34
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