HTTP response headers can be set e.g. like this in an ASP.NET Core Web API:
Response.Headers["Cache-Control"] = "public,max-age=3600";