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.

pre containing br breaks compression

See original GitHub issue

Compression will stop after encountering a br inside a pre. Try this code with default options in the online version:

<pre>
<br>
</pre>
<u>
test fail
</u>

result is identical.

I looked at source code but could not figure out why

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
azopyroscommented, Jan 29, 2018

When using <br>, minification break

capture d ecran 2018-01-29 a 15 30 07 capture d ecran 2018-01-29 a 15 30 16 capture d ecran 2018-01-29 a 15 30 45

1reaction
tomapcommented, Jan 26, 2018

I did some more tests, and it seems any self closing tag inside a pre will trigger this issue (like img or else)

@alexlamsl Could you please reopen ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Brotli Compression: A Fast Alternative to GZIP ... - Kinsta
GZIP compression has been the standard for a long time, but not any more! This post will dissect Brotli compression.
Read more >
Use Brotli Compression - Tezify
This means, compressing your files into brotli format through web server while serving a request is a bad idea. Instead, you should pre-compress...
Read more >
Compression under HTTPS with `dotnet watch` and ... - GitHub
Compression under HTTPS with dotnet watch and launchBrowser: true breaks some HTML ... Cannot decode HTTP response using Encoding: br; error: System.
Read more >
Comparative Study on the Period of Absolute Bed Rest ... - NCBI
A prospective study was conducted who were diagnosed with compression fracture. Groups A and B were put on ABR (one week for group...
Read more >
Boosting Site Speed Using Brotli Compression
Browsers that support Brotli automatically include br in the Accept-Encoding header sent with the HTTP request. It tells the server that the ...
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