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

Make sure fonts are cached by service worker #961

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

psrpinto
Copy link
Contributor

Fixes #763

On Chrome, the v=3.13 query parameter appears to prevent the file from being cached by the service worker. On Firefox it works even with query parameter.

Before:

Screenshot 2022-12-15 at 15 23 55

After:

Screenshot 2022-12-15 at 15 24 41

Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this. Indeed, we don't need the query param as we already have a content hash 👍

@bwindels bwindels merged commit c28b570 into element-hq:master Jan 17, 2023
@ashfame ashfame deleted the fix-font-not-chached branch March 13, 2023 13:09
MadLittleMods added a commit to matrix-org/matrix-viewer that referenced this pull request Apr 26, 2023
Of note:

 - Adds date headers, element-hq/hydrogen-web#938
 - Add "Copy matrix.to permalink" message action, element-hq/hydrogen-web#921
 - Removes `?v=3.13` query parameters from Inter font references in CSS, element-hq/hydrogen-web#961
    - This is what we need to solve #187 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants