Skip to content

Echo compression and WOFF2 font causing ERR_CONTENT_LENGTH_MISMATCH #806

Closed
@JosefWN

Description

@JosefWN

Description

Serving static content (Font Awesome 4.7.0), but having issues transferring the font file to the client browsers using Echo's Gzip compression.

Checklist

  • [ x ] Dependencies installed
  • [ x ] No typos
  • [ x ] Searched existing issues and docs

Expected behaviour

File transfers successfully, just like it does when Gzip compression is disabled in Echo.

Actual behaviour

GET http://site.com/fonts/fontawesome-webfont.woff2?v=4.7.0 net::ERR_CONTENT_LENGTH_MISMATCH (at least in Google Chrome 55).

The transfer retries and succeeds the second attempt falling back to WOFF.

Steps to reproduce

Include font awesome CSS on a simple HTML page and make sure font files are available, enable Gzip compression and serve static.

Version/commit

Today's version from the trunk of Echo, but also older versions. Possibly since v3. This is a relatively new bug though, has worked in the past.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions