Asset Signing & Edge Caching Guide
Integration guidelines for signed image URLs, responsive WebP/AVIF transforms, and deterministic cache invalidation across HatchPix studio pipelines.
Signed URL Verification
Compute an HMAC-SHA256 digest over the canonical request path and query string using your workspace signing key before serving transformed variants.
Quickstart: Generate Signed Asset Variant
import { signVariant } from "@hatchpix/edge-sdk";
const url = signVariant({
workspace: "ws_studio_prod",
assetId: "ast_01J9K2M8V7Q4",
width: 1280,
format: "webp",
ttlSeconds: 3600
});
Cache-Control & Webhook Retries
Immutable asset variants are served with Cache-Control: public, max-age=31536000, immutable. Webhook callbacks retry with exponential backoff up to five attempts on non-2xx responses.