Skip to content

Size limit of User Data Folder #4023

Answered by LiangTheDev
exaiwitmx asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think that there is a global limit over user data folder size for WebView2. However, most parts in the folder should not grow forever.
For disk caches (like http and code cache) that could grow, Chromium code has some heuristics on the default max size that takes account of available disk space. When the max size target is reached, trimming will happen.
If the app does not visit a lot of sites or having a service worker caching a lot of resources, the default behavior should be OK.
There is a --disk-cache-size Chromium command line switch that you could use to roughly control the max size of each disk cache.

There is currently one folder that could potentially grow out of control,…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@RobertoBaruffa
Comment options

@LiangTheDev
Comment options

Answer selected by victorhuangwq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #3243 on October 10, 2023 18:13.