启用Postman客户端缓存

时间:2018-10-25 06:41:50

标签: asp.net caching postman

我在通过Postman App测试某些API的缓存时遇到问题。

我已禁用“发送nocache标头”,但所有请求仍在服务器上。我同时针对localhost:4561(IISExpress)和我们的测试环境进行了测试。我还使用自定义HttpClient进行了测试,效果很好。为什么邮递员不从缓存提供服务?

请求标头:

postman-token:"82eb1770-48e0-4024-bc7e-369c15004f74"
x-applicationid:"Postman - 69811"
user-agent:"PostmanRuntime/6.4.1"
accept:"*/*"
host:"localhost:48868"
accept-encoding:"gzip, deflate"

回复

cache-control:"max-age=28800"
content-type:"application/xml; charset=utf-8"
content-encoding:"gzip"
vary:"Accept"
access-control-allow-origin:"*"
access-control-allow-headers:"Content-Type, Accept, Authorization, X-ApplicationId, X-SessionId, X-RequestId"
access-control-allow-methods:"GET, PUT, POST, OPTIONS"
date:"Thu, 25 Oct 2018 06:36:01 GMT"
content-length:"108"

使用: Windows的邮递员 版本5.3.2 win32 10.0.15063 / x64

0 个答案:

没有答案