Skip to content

Conversation

@celticr
Copy link
Contributor

@celticr celticr commented Jan 12, 2026

Summary

  • Changes icon CDN from raw.githubusercontent.com to cdn.jsdelivr.net
  • jsDelivr wraps GitHub with better CDN infrastructure

Benefits

  • Global CDN with multiple edge locations
  • Better caching and rate limiting protection
  • More reliable for high-traffic sites
  • No API rate limiting concerns

Test plan

  • Verify icons load correctly in admin settings page
  • Verify chat bubble icon displays on frontend
  • Test icon fallback still works when image fails to load

Closes #23

Uses jsDelivr CDN which wraps GitHub with better infrastructure:
- Global CDN with multiple edge locations
- Better caching and rate limiting
- More reliable for high-traffic sites

Closes #23
Copy link
Contributor Author

@celticr celticr left a comment

Choose a reason for hiding this comment

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

Review: PR #39 - Switch icon CDN from GitHub raw to jsDelivr

Summary

Clean, minimal change that improves CDN reliability.

Issues Found

None - This is a well-scoped, safe change.

Analysis

Aspect Assessment
Correctness ✅ URL format is valid for jsDelivr
Security ✅ Uses HTTPS, no data handling changes
Performance ✅ Improves CDN edge distribution
Backwards compat ✅ Drop-in replacement, same icons served

Notes

  • jsDelivr URL format cdn.jsdelivr.net/gh/{owner}/{repo}@{ref}/{path} is correct
  • Using @main will always fetch latest from main branch
  • Consider using a tagged version (@v1.0.3) for cache stability in future

Tests

  • Ran PHPUnit: 30 tests passing
  • Verified URL format produces valid icon URLs

Recommendation: APPROVE

@celticr celticr merged commit 71ade17 into main Jan 12, 2026
1 check passed
@celticr celticr deleted the feature/cdn-redundancy branch January 12, 2026 17:36
@celticr celticr mentioned this pull request Jan 12, 2026
7 tasks
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.

Consider CDN redundancy for icon delivery

2 participants