Azure-App-Service / KuduLite

KuduLite is the engine behind git/hg deployments, and various other features in Azure Web Sites on Linux.
Apache License 2.0
64 stars 46 forks source link

`WEBSITES_ENABLE_APP_CACHE` actually read only volume? #268

Open enghaug90 opened 1 year ago

enghaug90 commented 1 year ago

When using WEBSITES_ENABLE_APP_CACHE is it actually a read only volume that is mounted to /home/site/wwwroot?

I'm testing out the WEBSITES_ENABLE_APP_CACHE app setting on a App service hosting a NextJS application on App service on linux. Because we are experiencing some serious latency on cold start, which we suspect is latency related to fetching module files from Azure Storage. The NextJS cache folder is deleted on publish or restart of site, but the site recreates the folder and add files (images) to the folder. If the volume was read only this should not be possible, but maybe for some reason the setting is not activating the cache in my App service? Ho can I tell that the cache is active? Other than the environment setting.

The cache folder is located at /home/site/wwwroot/.next/cache.

I'm also facing av problem with disable the feature. After removing the setting, it is not possible to deploy new versions of the app. The deployment looks successfully i Azure DevOps release pipeline, but the web application still serves the old version. I had to re enable the cache by adding the app setting WEBSITES_ENABLE_APP_CACHE back, then do a new deploy, an finally the new version was served by the app service.

guiihlopes commented 8 months ago

Hey @enghaug90 were you able to resolve this cold start latency issue somehow?

markoharness commented 1 month ago

@enghaug90 Did you maybe have some luck in figuring out a solution to your issue?