we use the the "cache" parameter - but it do not work
this is what BOT is propoding:
Your code looks good for clearing cache data by adding the Clear-Site-Data header. To ensure the CSS and HTML are also cleared, you might need a more comprehensive approach. Here’s a refined version:
csharp
Kopieren public class BrowserCacheCleanerController : WFMOneControllerBase { private readonly INotificationAppService _notificationAppService;
public BrowserCacheCleanerController(INotificationAppService notificationAppService)
{
_notificationAppService = notificationAppService;
}
public async Task<IActionResult> Clear()
{
var result = await _notificationAppService.SetAllAvailableVersionNotificationAsRead();
HttpContext.Response.Headers.Append("Clear-Site-Data", "\"cache\", \"cookies\", \"storage\", \"executionContexts\"");
return Json(new { Result = result });
}
}
maybe because we use 2 instances? on Azure? just read this https://docs.aspnetzero.com/aspnet-core-angular/latest/Clustered-Environment
Scaling SignalR
ASPNET Zero has a built-in chat system and real-time notification system. They both use signalR. Before using multiple instances of your project, you should check signalR's scaling documentation and choose SignalR backplane providers or AzureSignalR.
Hi, thanks - we tried that - but Push Notification wasnt sent. Also we would expect that user after next login get something like PopUp "New Version pls press OK" or something like that? Any further hints for me? Thx in advance.