Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WEBSITES_ENABLE_APP_CACHE actually read only volume? #268

Open
enghaug90 opened this issue Sep 26, 2023 · 2 comments
Open

WEBSITES_ENABLE_APP_CACHE actually read only volume? #268

enghaug90 opened this issue Sep 26, 2023 · 2 comments

Comments

@enghaug90
Copy link

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
Copy link

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

@markoharness
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants