How to set HTTP response headers using the `ResponseHeaders` class in an ASP.NET Core Web API

后端 未结 0 975
小蘑菇
小蘑菇 2021-02-06 05:51

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";
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题