Azure Feature Manager - http request cache time

Valentin 21 Reputation points
2022-11-09T08:58:09.043+00:00

Hello community!

For some time now I want to use the Feature Manager in the azure portal. The plan is to use the feature flag service in the front- and backend. This is working quite well now, but when I change the value from true to false or vice versa the old value is still cached in the browser. Therefore it is necessary to clear the cache.

My question is how can I avoid having to clear the cache all the time if I want the value to be updated? Is there a certain timeframe after which this value is automatically requested again?

I work with the latest version of Angular.

Thank you for your help.

Best regards,

Valentin

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
209 questions
0 comments No comments
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,151 Reputation points
    2022-11-09T14:48:43.15+00:00

    @Valentin Thank you for reaching out to Microsoft Q&A. Based on my understanding, you are retrieving feature flag in client side (angular app) and changing values are not reflected due to cache. Please correct me if I am wrong.

    Refer similar discussion here & SO thread and cache management is either hard cache or no cache on the client side and hence you would need to clear cache. Our general recommendation is to use App Configuration on your server side and let your service cache and pass configuration to the client apps as mentioned by our product team here (also review security implications). I will pass on the feedback to our docs team about adding this note in our documentation. Note, here is the limit on the number of requests which is sufficient for most use cases and check Reduce requests made to App Configuration for guidance on caching (default: 30 seconds).

    I hope this answers your question and feel free to add a comment if you have any other questions. We would be happy to assist you. Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful