Please document how to clear the cache when using WebView2 within Unity #4058
Replies: 9 comments
-
@RubenGarcia our WebView Unity plugin exposes a subset of what's available with the underlying CoreWebView2 control. You can find the current API surface area here: https://learn.microsoft.com/en-us/windows/mixed-reality/develop/advanced-concepts/webview2-unity-plugin. We don't currently expose a method for clearing the cache. We can look into that. |
Beta Was this translation helpful? Give feedback.
-
Yes, clearing the cache would be very useful. |
Beta Was this translation helpful? Give feedback.
-
@RubenGarcia are you interested in clearing everything? Browsing history, cookies, temp files, etc.? |
Beta Was this translation helpful? Give feedback.
-
My usecase is being able to change the html in a webpage, and seeing the changes in WebView2. Right now, if I change the webpage, Webview2 shows the old, cached page. |
Beta Was this translation helpful? Give feedback.
-
Another thing which I would like exposed is a way to get and set the ZoomFactor. |
Beta Was this translation helpful? Give feedback.
-
Could you give a few more details on your scenario? I did some quick testing, but didn't hit a caching issue. Is the page hosted locally? How is the HTML modified? I assume you're refreshing and expecting the updated content? |
Beta Was this translation helpful? Give feedback.
-
I browsed |
Beta Was this translation helpful? Give feedback.
-
@RubenGarcia how are you closing the app? |
Beta Was this translation helpful? Give feedback.
-
In hololens, tap on wrist, click on the button at the bottom of the menu, then long press on app name in menu, then close. |
Beta Was this translation helpful? Give feedback.
-
I tried
which gives
Beta Was this translation helpful? Give feedback.
All reactions