Skip to content

Commit

Permalink
Merge pull request #291 from spk/docs-rm-cache-control
Browse files Browse the repository at this point in the history
Update jwks doc about cache keys
  • Loading branch information
ericchiang authored Mar 16, 2021
2 parents 16bf665 + 39ccf59 commit 08563f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oidc/jwks.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
// exposed for providers that don't support discovery or to prevent round trips to the
// discovery URL.
//
// The returned KeySet is a long lived verifier that caches keys based on cache-control
// headers. Reuse a common remote key set instead of creating new ones as needed.
// The returned KeySet is a long lived verifier that caches keys based on any
// keys change. Reuse a common remote key set instead of creating new ones as needed.
func NewRemoteKeySet(ctx context.Context, jwksURL string) *RemoteKeySet {
return newRemoteKeySet(ctx, jwksURL, time.Now)
}
Expand Down

0 comments on commit 08563f6

Please sign in to comment.