【发布时间】:2017-06-09 22:13:58
【问题描述】:
想象一下微服务架构中的许多服务。服务 A 向服务 B 请求响应,服务 B 将 Cache-Control 标头设置为 public, max-age=78261。
没有.NET 方式来处理请求的对象和某种“缓存”对象吗?
有人可能认为WebResponse 或HttpWebResponse 类中应该/应该有一个Cache 属性,与Cache-Control 标头接口。
真的需要解析Cache-Control字符串,找到值并手动实现对header的支持吗?
【问题讨论】:
标签: c# .net asp.net-web-api microservices