How to Clear App Service Caching

Darlene Fountaine 40 Reputation points
2024-04-26T23:20:58.1366667+00:00

I have an Angular website hosted in a Linux-based app service. This website is not very complicated, not high volume, and does not process highly critical or confidential data. It does leverage SendGrid to send transactional email messages to customers. The problem is that the changes I make to API endpoints through my environment files are not consumed by the website. It's as if the website is stuck with previous settings. So I'm thinking that caching must be involved. I've set these app settings in the Azure app service:

WEBSITE_DYNAMIC_CACHE=0 and

WEBSITE_LOCAL_CACHE_OPTION=Never

Neither of these settings is having an effect. How can I get the website to consume updates to environment variables (for that matter, updates to anything) and not continue to use "old" code? Thanks.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,924 questions
{count} votes