Firebase deploy should not reupload unchanged files
See original GitHub issueMy site is 0.2 MB of html and 9.8 MB of images. I have a slow internet connection. Whenever I change the html, I suffer firebase deploy
reuploading all the images—even though they are unchanged.
Good old Divshot was careful to compare sha256 sums so it could skip reuploading unchanged files. This made it usable on a slow connection. You can read a description of its algorithm at https://github.com/divshot/divshot-push/blob/master/lib/sync-tree.js
Whereas Firebase simply creates a tar ball of the entire project firebase-upload-*.tar.gz
https://github.com/firebase/firebase-tools/blob/master/lib/prepareUpload.js , including all the unchanged files.
Please think how to conserve bandwidth, for those of us not blessed with high speed internet.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:46
- Comments:28 (10 by maintainers)
Top Results From Across the Web
Firebase deploy firebase.json only - Stack Overflow
Yes. But note that firebase deploy will only deploy modified files these days. So if you changed no files, then it will not...
Read more >Configure Hosting behavior | Firebase Hosting - Google
Specify which files in your local project directory you want to deploy to Firebase Hosting. Learn how. Serve a customized 404/Not Found page....
Read more >Uploading large files on web using Firebase - Medium
Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your...
Read more >download file from yumpu
Do not rely on the name of a file to determine the contents of the file. ... the magazine Re-Upload: If the PDF...
Read more >One project, multiple sites! Plus a boost in upload speed!
This means any files that are unchanged aren't uploaded when you run firebase deploy . You may not notice a big improvement in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, this is on the roadmap and we know it’s strongly desired. Can’t give you a timeline, but we’re well aware.
On Tue, May 17, 2016, 9:49 AM Mirth Hickford notifications@github.com wrote:
This is the 5th most “reacted” open issue on Firebase, so I am really happy to be able to close it!
https://firebase.googleblog.com/2018/08/one-project-multiple-sites-plus-boost.html
Make sure to get the newest version of the Firebase CLI (
firebase-tools
on npm) and you’ll get super fast uploads!