What's the purpose of .firebase/hosting. ALPHANUM.cache

FirebaseFirebase HostingFirebase Cli

Firebase Problem Overview


Today I deployed firebase hosting. After deployment, I noticed firebase creates file of .firebase/hosting.ALPHANUM.cache, where ALPHANUM is actually some random baseNN ish value.

Question
  • What is the purpose of this file?
  • More especially, can I add this to .gitignore?
    • Or, I should not?

Firebase Solutions


Solution 1 - Firebase

This file is part of a new feature in Firebase Hosting that minimizes the size the time of a hosting deployment by only uploading the files that changed since the last deployment. It's new in CLI version 4.2.0, and you can read about that on GitHub.

As Frank suggested, you should definitely add the .firebase directory to your .gitignore or equivalent file, since it contains information that's not strictly part of your project, and is likely not applicable for everyone sharing and contributing to your project source code.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionYuki InoueView Question on Stackoverflow
Solution 1 - FirebaseDoug StevensonView Answer on Stackoverflow