Home > Net > HttpClientFactory created HttpClient cache-control caching in how to support the response
HttpClientFactory created HttpClient cache-control caching in how to support the response
Time:10-02
HttpWebRequest CachePolicy properties can be set up, and HttpClient can not find the cache Settings, When micro service call each other before, such as service use HttpClient invoke service b, service b returned in the response with cache-control: public, such as Max - age=600, normal is to automatically cache, but currently measured and found no caching capabilities, will request service b again
CodePudding user response:
Have a great god share
CodePudding user response:
No one encountered this problem
CodePudding user response:
You can look at this article https://blog.csdn.net/chenpeng19910926/article/details/71724037