Azure webapp not refreshing page content after upload

Gergő Sz 0 Reputation points
2023-04-24T16:15:50.52+00:00

I have a <site>

I've uploaded content to it via SFTP to the wwwroot folder, but the page displays "Your web app is running and waiting for your content" Edit: I've tried restarting it, shutting it down then starting it and using a blank HTML file. I've tried nodejs, .net and python.

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,926 Reputation points
    2023-04-26T05:29:06.55+00:00

    @Gergő Sz Thanks for reaching here! Could you please see if WEBSITE_RUN_FROM_PACKAGE is set to "1" in application settings. This setting doesn't extract the package content to the D:\home\site\wwwroot directory of your app. Instead, it uploads the ZIP file as-is to D:\home\data\SitePackages, and creates a packagename.txt in the same directory, that contains the name of the ZIP package to load at runtime. Refer: https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package

    Also, you may want to know that Azure Web Apps have two settings, WEBSITE_DYNAMIC_CACHE and WEBSITE_LOCAL_CACHE_OPTION, that control their file caching behavior. By default, web apps do not read files directly from the Azure Storage where published files are written. You can set the app settings WEBSITE_DYNAMIC_CACHE=0 and WEBSITE_LOCAL_CACHE_OPTION=Never to disable all file caching.  Refer to this detailed blog post on: Azure Web App Not Updating After Publish See https://learn.microsoft.com/en-us/azure/app-service/overview-local-cache Let us know if further query or issue remains.

    0 comments No comments

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.