Should not this entry in .gitignore make GIT ignore it?
*.cache
The file is in a subdir, ".firebase". The file shows up in "SOURCE CONTROL: GIT" in vscode as "Modified". (In Windows 10.)
EDIT: My problem was that I did not know that .gitignore does not work on tracked files.