From 4704b2a0e4d413a3cdc5e7de73418e8d5d9c6212 Mon Sep 17 00:00:00 2001 From: nimbleghost <132819643+nimbleghost@users.noreply.github.com> Date: Fri, 9 Jun 2023 11:32:44 +0200 Subject: [PATCH] Set default TTL for web push to the cache duration --- server/server_web_push.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/server_web_push.go b/server/server_web_push.go index 1adf5580..0b9ac808 100644 --- a/server/server_web_push.go +++ b/server/server_web_push.go @@ -116,6 +116,7 @@ func (s *Server) sendWebPushNotification(message []byte, sub *webPushSubscriptio VAPIDPublicKey: s.config.WebPushPublicKey, VAPIDPrivateKey: s.config.WebPushPrivateKey, Urgency: webpush.UrgencyHigh, // iOS requires this to ensure delivery + TTL: int(s.config.CacheDuration.Seconds()), }) if err != nil { log.Tag(tagWebPush).Err(err).Fields(*ctx).Debug("Unable to publish web push message, removing endpoint")