LoginRadius Global CDN
The LoginRadius Global CDN is built to deliver high-performance and highly available Customer Identity and Access Management (CIAM) services. LoginRadius ensures fast content delivery and 100% service uptime across all geographies by leveraging multiple top-tier CDN providers and real-time failover mechanisms.
LoginRadius uses a multi-CDN architecture to distribute static assets, including authentication scripts, through globally optimized routes.
The LoginRadius CDN architecture is designed to:
-
Reduce latency for global users
-
Improve load times for authentication scripts and static resources.
-
Enable real-time server and client-side failover.
-
Guarantee 100% uptime for critical identity services.
By distributing content across multiple CDN providers and automatically managing failover, LoginRadius ensures consistent performance—even in the face of CDN disruptions or regional network issues.
Cookieless CDN Domains
To maximize performance and eliminate unnecessary cookie data exchange, LoginRadius delivers static resources through cookieless domains.
Supported CDN Domains
-
https://auth.lrcontent.com
-
https://auth.lrcontent2.com
These domains are isolated from the main application domain to prevent the browser from automatically setting cookies. This can improve overall performance and ensure better compliance with privacy regulations such as GDPR.
Note: The domain cdn.loginradius.com
is deprecated and should not be used. As a subdomain of loginradius.com
, it may carry inherited cookies or generate cookies via embedded scripts, which can negatively impact page performance and violate privacy compliance requirements.
Redundancy and Failover Infrastructure
To maintain high availability and ensure uninterrupted access to critical authentication resources, LoginRadius implements a robust redundancy and failover architecture by hosting content across multiple origins and enabling automated fallback mechanisms, the platform safeguards against outages, regional failures, or CDN service degradation.
For maximum reliability, all static files are served through a dual-origin setup backed by both server-side and client-side logic.
Dual CDN Origins
Each CDN-hosted file is made available from two independent cookieless domains:
-
Primary:
https://auth.lrcontent.com
-
Secondary:
https://auth.lrcontent2.com
For example, the LoginRadius JavaScript file is hosted on both domains:
-
https://auth.lrcontent.com/v2/LoginRadiusV2.js
-
https://auth.lrcontent2.com/v2/LoginRadiusV2.js
These origins are dynamically selected using both server-side and client-side failover logic.
CDN Failover Mechanisms
Depending on the scenario, content delivery is automatically rerouted at the server or browser level to a healthy CDN origin.
Server-Side Traffic Manager Failover
LoginRadius uses a real-time Traffic Manager that monitors CDN availability. The Traffic Manager automatically reroutes requests to the nearest operational CDN node if the primary CDN becomes unavailable in a region.
Client-Side JavaScript Failover
Client-side failover is implemented through a fallback script on your web pages. If the browser cannot load content from the primary domain, it automatically attempts to fetch it from the secondary CDN domain.
Important Note:
To enable this feature, you must include the appropriate failover script snippet in your website code. This ensures that content delivery is maintained even in the rare event of CDN unavailability.
Global CDN Performance Optimization
LoginRadius partners with top-tier CDN providers to ensure low latency and high-speed delivery of authentication scripts and static assets. This multi-provider strategy ensures:
-
Rapid content delivery, regardless of region
-
Intelligent routing to reduce latency
-
Optimized load balancing during traffic spikes
CDN Optimization Techniques Used
-
Proper Caching Headers: Ensures browser and CDN-level caching are effectively applied
-
Gzip Compression: Reduces content size for faster delivery and bandwidth savings
CDN Header Example
LoginRadius sets proper caching and compression headers to maximize delivery efficiency. Here’s an example of HTTP headers for content served through the LoginRadius CDN:
cache-control: public, max-age=14400
content-encoding: gzip
content-type: application/x-javascript
These headers support long-term caching, allow cross-origin access, and deliver compressed content for optimal performance.