# Can support for If-Modified-Since be added to /userinfo?

**URL:** <https://community.auth0.com/t/can-support-for-if-modified-since-be-added-to-userinfo/6259>\
**Category:** Get Help\
**Tags:** feature-request, api, http\
**Created:** [April 18, 2017, 8:42pm UTC](https://community.auth0.com/t/can-support-for-if-modified-since-be-added-to-userinfo/6259 "2017-04-18T20:42:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nyholm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nyholm/32/7022_2.png) [@Nyholm](https://community.auth0.com/u/Nyholm)\
**Post date:** [April 18, 2017, 8:42pm UTC](https://community.auth0.com/t/can-support-for-if-modified-since-be-added-to-userinfo/6259/1 "2017-04-18T20:42:03Z")

</div>

When calling `/userinfo` with a `If-Modified-Since` header I would like the API to return 304 when if the resource has not changed.

That will reduce the load on your servers and will also make the HTTP calls quicker.

---

<div class="post-metadata">

**Author:** ![idbehold](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/idbehold/32/6947_2.png) [@idbehold](https://community.auth0.com/u/idbehold)\
**Post date:** [April 18, 2017, 9:49pm UTC](https://community.auth0.com/t/can-support-for-if-modified-since-be-added-to-userinfo/6259/2 "2017-04-18T21:49:23Z")

</div>

Currently that endpoint responds with none of the headers required to support conditional GET requests. It doesn’t have an `ETag` or `Last-Modified` header and in fact responds with a `Cache-Control: no-cache` header. So I’m guessing there is a reason they don’t allow caching of that endpoint.

---

<div class="post-metadata">

**Author:** ![Nyholm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nyholm/32/7022_2.png) [@Nyholm](https://community.auth0.com/u/Nyholm)\
**Post date:** [April 18, 2017, 10:01pm UTC](https://community.auth0.com/t/can-support-for-if-modified-since-be-added-to-userinfo/6259/3 "2017-04-18T22:01:43Z")

</div>

That would make sense if they do not temporary ban me (on my local machine!) because Im sending too many request…

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [April 19, 2017, 5:21pm UTC](https://community.auth0.com/t/can-support-for-if-modified-since-be-added-to-userinfo/6259/4 "2017-04-19T17:21:28Z")

</div>

I can relay this request, however, I believe it’s common for OIDC-related `/userinfo` endpoints to exhibit the current behavior of not making use of cache so I’m unsure if this will ever be considered. For example, from the [docs](https://www.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/twlp_oidc_userinfo_endpoint.html) of IBM WebSphere they also seem to follow the same approach and from a quick experimentation test it seems Google opts for the same behavior.

Additionally, have in mind that rate limiting would still most likely be applied because the server would still have to receive and process the request (it would just not return a response body) so you could still be in the same situation you are now of getting rate limited.

I would recommend that you post a question in relation to the scenario that leads to the rate limitation on your calls to that endpoint as it may be alternatives that will allow for a reduced number of calls.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/can-support-for-if-modified-since-be-added-to-userinfo/6259/5 "2018-03-02T05:53:20Z")

</div>


