Should I cache the XRDS file returned in openid?

喜欢而已 提交于 2019-12-11 07:23:55

问题


In the initial part of the openid sequence, I request the OP (e.g. Yahoo.com) and get back the XRDS file which tells me the actual URL I need to use for the rest of the openid process. So, can I cache this initial file. E.g. if I have hundreds of users using a Yahoo openid, I would only have to do the initial fetch once every hour?


回答1:


Yes, the OpenID spec does not forbid discovery caching, and most OpenID-enabled sites do just that. Of course the duration you cache discovery results should be balanced between speed, memory consumption and stale data.



来源:https://stackoverflow.com/questions/2799638/should-i-cache-the-xrds-file-returned-in-openid

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!