ASP.NET Core 3.1 get method body breaks the request

Issue happened on ASP.NET Core 3.1 Web API controller. I have a method in controller with [HttpGet] attribute and [FromBody] for only parameter: [HttpGet] public async Task<ActionResult> GetMessages([FromBody] MessageRM messagesRequest) This method expects to receive a request model: public class MessageRM { public int RegionID { get; set; } public int? LastMessageID { get; set; … Read more

Disabling browser caching for all browsers from ASP.NET

I’m after a definitive reference to what ASP.NET code is required to disabled browsers from caching the page. There are many ways to affect the HTTP headers and meta tags and I get the impression different settings are required to get different browsers to behave correctly. It would be really great to get a reference bit of code commented to indicate which works for all browsers and which is required for particular browser, including versions.