SEO Tools

Image Client Hints Vary Checker

Validate image client-hints delivery for missing hint-specific Vary coverage, weak Accept-CH policy, and cache-key fragmentation risk.

About this tool

Audit image response exports before deployment so client-hints-based variants (DPR, Width, Viewport-Width) include explicit Vary and Accept-CH coverage without unstable cache-key sprawl.

The Image Client Hints Vary Checker verifies that servers using DPR, Width, or Viewport-Width client hints to transform images also include the corresponding Sec-CH tokens in their Vary response headers. Without these tokens, CDN and proxy caches can conflate variants intended for different device classes, delivering a 1x image to a 3x display or a desktop-sized asset to a mobile viewport. The tool maps every hint-to-Vary pairing across all image responses on a page.

  • Parses rows in URL|image-url|vary|accept-ch|requested-hints|status|context|bytes format and normalizes relative image URLs with an optional base URL.
  • Flags missing Vary headers, hint-specific Vary gaps (Sec-CH-DPR/Width/Viewport-Width), and requested hints not declared in Accept-CH.
  • Highlights wildcard and high-cardinality Vary usage, then prioritizes pages where critical image risk bytes exceed your configured budget.

How to use Client Hints Vary Checker

Enter a URL and the checker fetches the page, identifies which client hints are advertised via Accept-CH, and then inspects every image response to confirm the Vary header includes matching Sec-CH-DPR, Sec-CH-Width, or Sec-CH-Viewport-Width tokens. Mismatches are flagged with the specific missing token and the image's byte weight so you can triage cache-correctness fixes by performance impact. Re-audit after configuration changes to validate coverage.

When this tool is useful

  • Audit responsive image delivery before launch when DPR, Width, or Viewport-Width client hints are enabled at CDN or edge layers.
  • Catch missing hint-specific Vary coverage that can cause mismatched variants from shared caches.
  • Prioritize critical templates where client-hints cache risk can degrade LCP consistency across devices.

Practical tips

  • Treat requested hints and cache keys as a pair: if DPR/Width/Viewport-Width are used to transform images, include matching Sec-CH-* tokens in Vary.
  • Keep Accept-CH declarations explicit and minimal so hints are intentional, auditable, and stable across deployments.
  • Avoid wildcard and high-cardinality Vary usage unless you have measured evidence it is required.

Why people use this tool

Client hints let servers tailor image resolution and dimensions to each device, but the cache layer must know which hints influenced the response. If Vary omits the relevant Sec-CH token, a high-DPR variant cached for one request may be served to a low-DPR device, wasting bandwidth, or a small variant may reach a high-density screen, degrading visual quality. Correct Vary alignment is the mechanism that makes client-hint-driven image optimization cache-safe.

Related search intents

image client hints checker, vary sec-ch checker, image dpr width vary audit, client hints image cache checker.

Frequently asked questions

What input format does this client-hints Vary checker expect?

Use one row per image in URL|image-url|vary|accept-ch|requested-hints|status|context|bytes format. Bytes can be entered in B, KB, or MB.

Why do client hints need matching Vary headers?

If responses vary by DPR, Width, or Viewport-Width but caches are not keyed by those hints, users can receive mismatched image variants that hurt rendering consistency.

What client hints are relevant to image delivery optimization?

The most relevant client hints for images are DPR (device pixel ratio), Width (desired resource width), Viewport-Width, and ECT (effective connection type). These allow the server to select the optimal image variant without relying solely on srcset, but each must be paired with a corresponding Vary entry.

What does weak Accept-CH policy mean in this context?

A weak Accept-CH policy means the server does not send the Accept-CH response header or includes only a subset of the hints it actually uses for image selection. This causes browsers to not send the expected hint headers, forcing the server to fall back to default image variants.

How does hint-specific Vary coverage prevent cache-key issues?

When the server uses the DPR hint to select an image variant but the Vary header omits DPR, caches may serve a 1x image to a 3x device or vice versa. The checker ensures every client hint the server acts upon is reflected in the Vary header to maintain correct cache segmentation.

Related tools

Keep the workflow moving

These tools are the closest next steps based on category, keyword overlap, and popular workflow paths.

SEO

Article Schema Generator

Generate Article JSON-LD markup.

SEO

Breadcrumb Schema Generator

Generate BreadcrumbList JSON-LD markup.

SEO

Canonical Tag Generator

Create canonical link tags for SEO.

SEO

FAQ Schema Generator

Generate FAQ JSON-LD markup.