Upgrade on the same hostname
Browsers can load JS from cache and open a WebSocket without a second domain.
Serve HTTP assets and WebSocket traffic on one hostname. Verify the upgrade handshake and confirm that the application origin accepts persistent connections.
Cloud CDN supports WebSockets. Cached GET assets stay at the edge. WebSocket upgrades bypass cache and reach the origin.
Browsers can load JS from cache and open a WebSocket without a second domain.
WebSocket support does not disable caching for the rest of the distribution.
wss:// uses the same certificate map as https://.
Pull the HTTP origin that already speaks WebSockets.
JS, CSS and images stay cacheable.
The WebSocket URL bypasses cache and reaches origin.
Confirm upgrades, heartbeats and reconnects through the edge.
No. The upgrade and the data plane are dynamic. Only ordinary HTTP GETs are cached.
If Socket.IO falls back to HTTP long-polling, those POSTs/GETs must bypass cache. The WebSocket transport upgrades dynamically.
No. Cloud CDN is the path to your origin. Presence, fan-out and channel logic stay in your app or vendor.
Plan idle timeouts with your origin. Validate long-lived connections before production cutover.