Toast notification notification caching

I wanted to implement a way to ensure that the user receives notifications, for example. Azure NotificationHub - bad notification detection

However, this was of limited success when there were many subscribers to the tag, and then a lot of server time ended.

Instead, I found a notification caching link . It specifically states that toast notifications cannot be cached. However, since I upgraded to Azure App Service using the Notification Hub, I tested that toast notifications are actually cached.

However, I cannot find any caching documentation regarding Toasts or how to provide caching or how much caching can be cached and finally how long?

So I would like to know if anyone has knowledge of caching and how is this indicated? An example from the above link:

X-WNS-Cache-Policy: cache | no-cache

But how is this indicated?

Update

The answer is correct to enable caching. However, it’s still not clear to me how long Notifications are cached , the link says that notifications are discarded after a reasonable amount of time, that it

, , , , , . , , ?

, /?

+4
1

Azure Notification Hub . WNS .

WNS, , WNS ( , - ) URI , . X-WNS-Cache-Policy. , , .

API Notification Hub SendNotificationAsync . :

wnsHeaders = ();

wnsHeaders.Add( "X-WNS-Cache-Policy", "cache" );

WindowsNotification = WindowsNotification ( " ", wnsHeaders);

. SendNotificationAsync ();

+2

All Articles