HttpClient caching in UWP apps

Viewed 777

I own both WebApi server (asp.net core app) and the client (UWP app).

I call the WebApi services using HttpClient from the UWP app.

Some resources are readonly and therefore can be cached:

[ResponseCache(Duration = 60*60*12, VaryByQueryKeys = new[] { "id" }, Location = ResponseCacheLocation.Client)]`
[HttpGet("{id}")]
public IActionResult Get(string id) { ... }

Is it possible to enable caching in HttpClient in UWP app or do I have to do it on my own?

1 Answers
Related