Skip to content

Disable hashed file names for font files #9283

Closed
@Aditya94A

Description

@Aditya94A

Here's an example, I'm loading some fonts:

@font-face {
    font-family: "Flaticon";
    src: url("./font/Flaticon.eot");
    src: url("./font/Flaticon.eot?#iefix") format("embedded-opentype"),
    url("./font/Flaticon.woff") format("woff"),
    url("./font/Flaticon.ttf") format("truetype"),
    url("./font/Flaticon.svg#Flaticon") format("svg");
    font-weight: normal;
    font-style: normal;
}

The font files will never ever change.

And yet, for every build:

image

A new hashed file name is generated, meaning after every deploy, my users have to download the fonts over and over, just because the name changed.

I'd like to keep the hashed file names for CSS/JS and all, but why are font file names hashed by default? And what's the solution to this? I want no name hashing for font file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions