w= and still get correctly sized bytes. Convertly reads Sec-CH-Width, Sec-CH-DPR, and legacy DPR when you pass ch=Width,Dpr on the URL.
Reference: Format & delivery → Client hints.
Client Hints require HTTPS and a browser that sends the hints (Chrome, Edge, and Chromium-based browsers are the main adopters). Always provide a fallback width in
src or a w= default for browsers that do not send hints.When to use Client Hints vs srcset
You can combine both: fixed breakpoints in
<picture> and Client Hints on individual hero images.
Basic CDN URL
Omitw and opt in to hints:
Sec-CH-Width (CSS pixels) by dpr (from Sec-CH-DPR or the dpr query param) to derive output width, then applies fit=cover with your h=600.
See the before/after example in Format & delivery.
Enable hints in the browser
Chrome (local testing)
- Open
chrome://flags/#enable-experimental-web-platform-featuresor ensure Client Hints are enabled for your origin. - Serve your page over HTTPS (or
localhost). - Add a
<meta>tag orAccept-CHresponse header so the browser knows which hints to send on the next navigation:
CDN image requests
Hints apply to the document that loads the<img>. The browser attaches Sec-CH-* headers to subresource requests (your Convertly CDN URLs) when the hint was negotiated for the top-level page.
Next.js example
Supported hint parameters
If no hint arrives, set an explicit fallback:
?w=1200&ch=Width,Dpr uses 1200 when Sec-CH-Width is absent.
Caching behaviour
Client Hint variants are cached separately. Convertly setsVary appropriately so AVIF/WebP negotiation and hint-based widths do not collide at the edge. See How caching works.
Related docs
- Responsive images & art direction — srcset,
<picture>,<ConvertlyImage> - Format & delivery —
format=auto, Save-Data, metadata strip - CDN performance — cache keys and purge strategy