C# WPF Client Cache /.well-known/jwks.json

We have a C# WFP client and would like to cache /.well-known/jwks.json. Is there an example of how to cache and use the cached version?