question

Gil-0957 avatar image
0 Votes"
Gil-0957 asked vipulsparsh-MSFT commented

Control the Cache-Control header of the jwks_uri (https://{domain}.b2clogin.com/{tenant}/{policy}/discovery/v2.0/keys)

Hi,

I'm using Azure AD B2C with custom policies.

when I'm using the keys endpoint (jwks_uri) it returns the keys response with the header: Cache-Control: private.
Is there a way to control it, maybe through the custom policies (I want to change it to public)?

I'm using an API gateway tool and I want to retrieve the keys once instead of fetching the keys for each call, and this header prevents me from doing so.

Thanks, Gil

azure-ad-b2c
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Gil-0957 I wanted to follow up and know if the below responses helped in answering your query. If it did, please do not forget to accept the appropriate response as Answer.

0 Votes 0 ·

1 Answer

vipulsparsh-MSFT avatar image
0 Votes"
vipulsparsh-MSFT answered

@Gil-0957 Thanks for reaching out and sincere apologies for the delay on this. We are constantly trying to reduce our answer time and in coming days you will see a significant improvement here. So we appreciate you posting your future queries here.

Currently cache-control is bye default private and it cannot be changed.

97504-image.png


We welcome you to submit this as feedback on our Azure AD B2C feedback page for further consideration. Once done, do update the feedback URL here, so that other people can also vote for it.
https://feedback.azure.com/forums/169401-azure-active-directory/category/160596-b2c



If the suggested response helped you resolve your issue, please do not forget to accept the response as Answer and "Up-Vote" for the answer that helped you for benefit of the community




image.png (27.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.