You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to work around this by providing a non-zero TTL, but maybe this can be solved on library level by only setting the TTL header if the value isn't 0?
The text was updated successfully, but these errors were encountered:
When I use the default
Options.TTL
of 0, the Windows Push Notification Service (WNS) rejects the request with status 400 and these headers:This seems to be because webpush-go includes an explicit
TTL: 0
header, which Microsoft interprets as "do not cache", but according to https://learn.microsoft.com/en-us/previous-versions/windows/apps/hh465435(v=win.10) the defaultX-WNS-Cache-Policy
is to enable caching, hence the conflict.I was able to work around this by providing a non-zero TTL, but maybe this can be solved on library level by only setting the TTL header if the value isn't 0?
The text was updated successfully, but these errors were encountered: