Skip to content

specify the cache directory #3

Open

Description

@jiamei626

Is there an entry to set the cache location of open browser instances? This is helpful for multiple instances and need to remember the use of cookies, thanks

Activity

  1. congzhangzh commented on Sep 7, 2025

    @congzhangzh
    Owner

    I am not sure, that depend on upstream webview project, and I don't think there is some way to pass it!

    For windows WebView2, some tricks may be works

    for c#

    Environment.SetEnvironmentVariable("WEBVIEW2_USER_DATA_FOLDER", "C:\MyDirectory\")

    for python

    import os
    os.environ["WEBVIEW2_USER_DATA_FOLDER"]="you_cache_dir"

    refs

    https://stackoverflow.com/questions/62470733/set-cache-directory-for-webview2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions