question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gzip on firebase hosting on/off ?!

See original GitHub issue

Good afternoon, I’m facing a strange problem. I’m making a personal website, and I’m using firebase tools and also deploying this site on the firebase hosting. For that I have 3 projects "projects": { "default": "kate-photo-site", "staging": "katia-898f2", "production": "kates-eye" }

One day after deploying a new version , I noticed that the page opens much more longer than usual. Website based on Nuxt framework and using Webpack, so after every build process I see the size of any of generated files, and it remains the same (it’s about 407kb for vendor.app.js for ex.). However, earlier the browser received a compressed file, which had a size of 114 kb, and now uncompressed, whose weight is 400+ kb.

And at the same time, when I publish the same code on another project, everything is fine!

I started looking into the browser console, and found the difference. The code is really not compressed, and is given by a server called “Google Frontend” whereas in another project, the files are given by the nginx servers and the files are compressed! _Console - Network - vendors.app.js - Headers: for : https://kates-eye.firebaseapp.com/

  • content-encoding: gzip
  • content-length: 116842
  • server: nginx

and

for : https://kate-photo-site.firebaseapp.com/

  • content-length: 456081
  • server: Google Frontend

For example the resource size for vendors.app.js is the same = 445kb!

I don’t have any explanation why it happens, maybe you could find something for me? Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
mbleighcommented, Aug 18, 2019

We are in the process of rolling out some new infrastructure, and this might be a bug. The rollout is applied randomly to a subset of hostnames on Firebase Hosting, so that likely explains the discrepancy. We will investigate the underlying issue.

On Sun, Aug 18, 2019, 10:52 AM olegpopovskiy notifications@github.com wrote:

Update 2: https://kates-eye.firebaseapp.com/ and https://kates-eye.com it’s the same project, but while accessing through kates-eye.com http://kates-eye.com, compression is disabled, but through kates-eye.firebaseapp.com/ http://kates-eye.firebaseapp.com/, it is turned on! what’s happening ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/firebase/firebase-tools/issues/1604?email_source=notifications&email_token=AAAAH7RNHEXGQ5MKJNPGGDLQFGD7NA5CNFSM4IMPU6AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RE24Y#issuecomment-522341747, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAAH7X3SGGYY5HT45RSKFDQFGD7NANCNFSM4IMPU6AA .

2reactions
bendorancommented, Aug 19, 2019

We’re experiencing this issue also.

Read more comments on GitHub >

github_iconTop Results From Across the Web

serving gzipped files on Firebase Hosting - Stack Overflow
I am interested in serving gzipped html/css/js files using Firebase Hosting. I tried setting the Content-Encoding header in firebase.json, ...
Read more >
New for Firebase Hosting: request logging, Brotli compression ...
Hosting will now compress your assets with Brotli encoding. We'll automatically serve the smallest, best-compressed version of your content, ...
Read more >
Firebase Hosting not compressing image files - Google Groups
My Firebase Hosting project isn't compressing image assets. This SO post says Hosting automatically gzips files, but it's not happening.
Read more >
gcloud beta sql instances create
Use on/off for booleans. View the Instance Resource API for allowed flags. (e.g., --database-flags max_allowed_packet=55555,skip_grant_tables=,log_output=1 ) ...
Read more >
APNS | Apple Developer Forums
I want to implement a UITest that detect push notifications sent from my server. ... 'Content-Length': '58', 'Accept-Encoding': 'gzip, compress, deflate, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found