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-compress static assets (HTML, favicon, CSS)?

See original GitHub issue

Update for QA (2019.07.16): please make sure the favicon is still displayed in all envs.


According to https://webpagetest.org/performance_optimization.php?test=171103_BA_cfaf6b04d96bcc5ba50d34c420f4b7a2&run=4#compress_text, we don’t Gzip-encode/compress the following:

1,010.1 KB total in compressible text, target size = 441.3 KB - potential savings = 568.9 KB

FAILED - (619.1 KB, compressed = 79.2 KB - savings of 539.9 KB) - https://addons-amo-dev-cdn.allizom.org/amo-e10c3688997f3544f58365d7dfab0c72.css FAILED - (31.8 KB, compressed = 7.0 KB - savings of 24.8 KB) - https://addons-dev.allizom.org/en-US/firefox/addon/adobe-flash/ FAILED - (5.3 KB, compressed = 1.1 KB - savings of 4.2 KB) - https://addons-dev-cdn.allizom.org/favicon.ico?v=1

Looks like there might be an outstanding concern with the HTML assets due to CSRF leaking (https://github.com/mozilla/addons-server/issues/6636#issue-264291074) but filing for consideration.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
bqbncommented, Jul 15, 2019

Deployed to -prod as well.

0reactions
vcarciucommented, Jul 16, 2019

Favicon displayed in all envs. Marking the issue as verified.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding a favicon to a static HTML page - Stack Overflow
I have a few static pages that are just pure HTML, that we display when the server goes down. How can I put...
Read more >
2019.07.18 Milestone - GitHub
Gzip-compress static assets (HTML, favicon, CSS)? component: performance needs: ops priority: p2 Issues at this level should be fixed within ...
Read more >
HTML Favicon - W3Schools
A favicon is a small image displayed next to the page title in the browser tab. How To Add a Favicon in HTML....
Read more >
PageSpeed: Enable compression - GTmetrix
Write your web page content to make compression most effective · Ensure consistency in HTML and CSS code. To achieve consistency: · Minify...
Read more >
How to Favicon in 2022: Six files that fit most needs
Your HTML page should have a <link> tag in its <head> with rel="icon" , type="image/svg+xml" and with the href containing a link to...
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