IdentityServer3 icon indicating copy to clipboard operation
IdentityServer3 copied to clipboard

Configurable Cache Control for Discovery Endpoints

Open gnjack opened this issue 7 years ago • 0 comments

Adds feature requested for IdentityServer4 in IdentityServer/IdentityServer4#810 but this time for IdentityServer3

It would be nice if there was a supported way to define cache headers for the discovery endpoint. Right now, our resource servers assume that the jwk immediately expires if there is no cache header set.

Add DiscoveryOptions.ClientCacheInterval to set the maxage cache control header on the discovery endpoints. Defaults to one hour.

This gives clients a hint how often they should refresh their cached copy of the discovery document.

Feature implemented in a similar manner to IdentityServer4 IdentityServer/IdentityServer4@58e6c3a

gnjack avatar Jun 21 '17 12:06 gnjack