google / google/fonts

Firefox reloads the .css file on every page load (and how to solve it)

Open
#1,507 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

For Firefox, just having a header like Cache-Control: max-age=123123 is not enough.

Firefox will fully reload the .css file of a font on every page load.

Adding immutable in the Cache-Control header would solve this problem. All browsers would ignore this field, except for the browsers that need it and recognize it, such as Firefox. And the resource being immutable doesn't mean it is not allowed to change after expiration... on the contrary, after max-age expiration occurs, the resource will be reloaded.

Can you please turn: Cache-Control: blabla header into ```Cache-Control: blabla, immutable``` ?

Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.