Skip to content

Comments

Fix push subscription cleanup for 404 and 410 errors#20

Merged
louije merged 1 commit intomainfrom
claude/fix-push-subscriptions-TEJ67
Dec 28, 2025
Merged

Fix push subscription cleanup for 404 and 410 errors#20
louije merged 1 commit intomainfrom
claude/fix-push-subscriptions-TEJ67

Conversation

@louije
Copy link
Owner

@louije louije commented Dec 28, 2025

Handle both 404 (Not Found) and 410 (Gone) status codes when push
notifications fail. This properly removes stale subscriptions when:

  • Users unsubscribe from push notifications
  • Users clear their browser data
  • Push subscription endpoints expire (common with Apple's push service)

Previously only 410 was handled, causing log spam and wasted resources
for stale Apple push endpoints that return 404.

Handle both 404 (Not Found) and 410 (Gone) status codes when push
notifications fail. This properly removes stale subscriptions when:
- Users unsubscribe from push notifications
- Users clear their browser data
- Push subscription endpoints expire (common with Apple's push service)

Previously only 410 was handled, causing log spam and wasted resources
for stale Apple push endpoints that return 404.
@netlify
Copy link

netlify bot commented Dec 28, 2025

Deploy Preview for maisonsdoggo canceled.

Name Link
🔨 Latest commit 7502c20
🔍 Latest deploy log https://app.netlify.com/projects/maisonsdoggo/deploys/69513b970ddf47000869bf63

@louije louije merged commit 945e68b into main Dec 28, 2025
5 checks passed
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.

2 participants