Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable hashed file names for font files #9283

Closed
Aditya94A opened this issue Jul 9, 2020 · 5 comments
Closed

Disable hashed file names for font files #9283

Aditya94A opened this issue Jul 9, 2020 · 5 comments

Comments

@Aditya94A
Copy link

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.

@Aditya94A Aditya94A changed the title Disabled hashed file names for font files Disable hashed file names for font files Jul 9, 2020
@miraage
Copy link

miraage commented Jul 10, 2020

I can see 'static/media/[name].[hash:8].[ext]' for the file-loader. Maybe [contenthash] would make more sense.

@stale
Copy link

stale bot commented Aug 9, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Aug 9, 2020
@miraage
Copy link

miraage commented Aug 9, 2020

Bot not now

@stale stale bot removed the stale label Aug 9, 2020
@stale
Copy link

stale bot commented Sep 11, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Sep 11, 2020
@stale
Copy link

stale bot commented Sep 20, 2020

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants