How does Auto Redirect www/non-www work?

Auto Redirect www/non-www speeds up response time by caching redirect requests.

Here’s how it works:

  1. The browser sends a request for www.example.com to QUIC.cloud CDN.
  2. QUIC.cloud sends the www.example.com request to your origin server.
  3. The origin server returns a response, indicating that the www.example.com request was redirected to example.com (the non-www domain).
  4. QUIC.cloud returns this redirect response to the browser and caches the response at the PoP level.
  5. The next time a www.example.com request is received, QUIC.cloud automatically redirects to example.com, saving a round trip to the origin server.

This works if the redirect is in the opposite direction, too (example.com redirecting to www.example.com).

Under the current CDN cache policy, pages are stored at a PoP for 24 hours from the last access, up to 7 days total.