Skip to content

Conversation

@macite
Copy link
Member

@macite macite commented Oct 18, 2025

Attempt to address issue with DLI loading of fonts. This should allow the service working to load these now.

Currently the service worker fails to load these fonts on reload for the DLI installation. This should allow the client to access these as required.

Attempt to address issue with DLI loading of fonts.
This should allow the service working to load these now.
@macite macite requested review from b0ink and Copilot October 18, 2025 06:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates the Angular service worker configuration to improve font loading for DLI installations by moving Google Fonts caching from external assets to a dedicated data group with proper caching strategy.

  • Migrated Google Fonts from external assets to a dedicated cache group with specific configuration
  • Applied proper caching strategy with freshness approach and 7-day max age for font resources
  • Cleaned up JSON formatting for better readability

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

},
{
"name": "google-fonts-cache",
"urls": ["https://fonts.gstatic.com/**"],
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

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

The URL pattern only covers fonts.gstatic.com but the removed external asset included fonts.googleapis.com. This change may break CSS font loading from Google Fonts API, as fonts.googleapis.com serves the CSS files that reference fonts.gstatic.com resources.

Suggested change
"urls": ["https://fonts.gstatic.com/**"],
"urls": ["https://fonts.googleapis.com/**", "https://fonts.gstatic.com/**"],

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant