Skip to content

Instantly share code, notes, and snippets.

@marcusx2
Last active July 12, 2025 18:08
Show Gist options
  • Save marcusx2/959908bccde199bf75eb2c39683bb37c to your computer and use it in GitHub Desktop.
Save marcusx2/959908bccde199bf75eb2c39683bb37c to your computer and use it in GitHub Desktop.

Revisions

  1. marcusx2 revised this gist Aug 28, 2020. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions netlify.toml
    Original file line number Diff line number Diff line change
    @@ -2,22 +2,22 @@
    for = "/Build/*.data.br"
    [headers.values]
    Content-Encoding = "br"
    Content-Type = "application/octet-stream"
    Content-Type = "application/octet-stream"

    [[headers]]
    for = "/Build/*.wasm.br"
    [headers.values]
    Content-Encoding = "br"
    Content-Encoding = "br"
    Content-Type = "application/wasm"

    [[headers]]
    for = "/Build/*.js"
    [headers.values]
    Content-Encoding = "js"
    Content-Encoding = "js"
    Content-Type = "application/javascript"

    [[headers]]
    for = "/Build/*.js.br"
    [headers.values]
    Content-Encoding = "br"
    Content-Encoding = "br"
    Content-Type = "application/javascript"
  2. marcusx2 created this gist Aug 28, 2020.
    23 changes: 23 additions & 0 deletions netlify.toml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    [[headers]]
    for = "/Build/*.data.br"
    [headers.values]
    Content-Encoding = "br"
    Content-Type = "application/octet-stream"

    [[headers]]
    for = "/Build/*.wasm.br"
    [headers.values]
    Content-Encoding = "br"
    Content-Type = "application/wasm"

    [[headers]]
    for = "/Build/*.js"
    [headers.values]
    Content-Encoding = "js"
    Content-Type = "application/javascript"

    [[headers]]
    for = "/Build/*.js.br"
    [headers.values]
    Content-Encoding = "br"
    Content-Type = "application/javascript"