# JWKS Caching Strategy Recommendations

**URL:** <https://community.auth0.com/t/jwks-caching-strategy-recommendations/183415>\
**Category:** Dev to Dev Hub\
**Tags:** oauth-2-0, protocols\
**Created:** [March 5, 2025, 10:57pm UTC](https://community.auth0.com/t/jwks-caching-strategy-recommendations/183415 "2025-03-05T22:57:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [March 19, 2025, 6:33pm UTC](https://community.auth0.com/t/jwks-caching-strategy-recommendations/183415/4 "2025-03-19T18:33:25Z")

</div>

Hi @FrostbyteApps,

There isn’t an exact number of seconds you need to cache the JWKs, as stated in this post:

> [@Feedback on Caching JWKS for JWT Verification in Ruby](https://community.auth0.com/t/feedback-on-caching-jwks-for-jwt-verification-in-ruby/138885/3):
>
> Hey @raphael.egeley welcome to the community! Great Idea! Overall, I think your approach is good - There isn’t a recommended time to cache tokens. The following post expands on caching JWKs and is still useful despite being a few years old.

JWKs will return the same set of keys most of the time, so you can just cache them and keep using them and if they get denied you can request them again.

If you have any other question feel free to reach out.

Have a good one,  
Vlad

---

_[View the full topic](https://community.auth0.com/t/jwks-caching-strategy-recommendations/183415)._
