Azure Web App Not Updated Despite Succesful Deployment

pk 20 Reputation points
2023-09-22T12:13:09.8833333+00:00

I have deployed an Flask Web App via an Azure Devops Pipeline. When I commit on the main branch the Pipeline runs succesfully and I can see the updated python files in Kudu Debug Console in the wwwrooot.

However, the app does not reflect the changes. Namely, when I try to access a route via a get I still receive and old message which has been in the committ one week ago not the latest one.

I have tried to setup the app settings:

WEBSITE_DYNAMIC_CACHE = 0 and 
WEBSITE_LOCAL_CACHE_OPTION  = Never

I have not clue what is wrong. Any thoughts ?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,965 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2023-09-23T15:10:00.5666667+00:00

    Hi @pk

    Those settings you listed above wouldn't have any affect. Local Cache on App Service primary use is for storing content in a durable manner as your app scales in and out. Without a code snippet or logs, it's difficult to say what the issue could be. I would highly suggest enabling logging and add some additional around those regions.

    Having said that, I personally would take these actions:

    • Use my browser's Developer tools to inspect the content it's pulled from the website and check for differences. I would also do a hard refresh.
    • Clear any cached site data from website.
    • Restart the app service.

    Based off what worked or didn't work would help me determine how to further investigate.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.