Prompt

Why are transformed images not caching properly on my site?

Technology / CDN & Edge Infrastructure1 observationLast seen Nov 3, 2026

Latest observation

Nov 3, 2026OpenAI APIWeb search: off

Transformed images usually fail to cache properly for one of a few common reasons:

  1. The transform URL changes every request

    • If the image URL includes dynamic query params, timestamps, random tokens, or user-specific values, caches see each request as a different asset.
    • Example: /image.jpg?width=800&t=1699999999 won’t cache well because t changes.
  2. Cache headers aren’t set correctly

    • The origin or CDN may be sending:
      • Cache-Control: no-store
      • Cache-Control: no-cache
      • Cache-Control: private
      • very short max-age
    • For transformed assets, you generally want something like:
      • Cache-Control: public, max-age=31536000, immutable for versioned assets
    • If the image is generated dynamically, ensure it still returns cache-friendly headers.
  3. The transformation is considered unique each time

    • Some systems cache transformed images by the exact combination of:
      • source image
      • resize/crop/format/quality parameters
      • request host/path
    • Even small differences like format=webp vs format=auto, or different parameter order in some systems, can produce cache misses.
  4. Missing CDN/proxy caching

    • The browser may cache, but your CDN or reverse proxy might not.
    • If the response doesn’t include ETag, Last-Modified, or cache-control directives that allow edge caching, transformed images may be regenerated on every request.
  5. Cookies or auth headers are preventing shared caching

    • If the image responses are tied to authenticated sessions or the server sets Set-Cookie, many CDNs won’t cache them by default.
    • Any Vary header on headers like Cookie, Authorization, or User-Agent can also fragment the cache.
  6. Cache key configuration is wrong

    • Your CDN might not be including the right parts of the request in the cache key, or it may be including too many.
    • If it includes unnecessary query params, the cache gets fragmented.
    • If it excludes transformation params, it may serve the wrong version.
  7. The transform is happening at the wrong layer

    • If your app generates the transformed image on every request before the CDN sees it, the CDN may be caching the wrong response path or not caching at all.
    • Best practice is often:
      • origin generates once
      • CDN caches transformed output
      • browsers cache the CDN response
  8. Response is marked as uncacheable by the platform

    • Some frameworks or image optimization endpoints default to short-lived or private caching.
    • For example, image optimization middleware may intentionally set conservative cache rules unless configured otherwise.

How to diagnose quickly

Check the transformed image response headers in DevTools or curl -I:

  • Cache-Control
  • Age
  • ETag
  • Last-Modified
  • Vary
  • Set-Cookie
  • CDN-specific headers like X-Cache, CF-Cache-Status, X-Served-By

Common fix pattern

  • Make the transform URL stable
  • Ensure cacheable response headers
  • Avoid cookies on image responses
  • Confirm CDN cache key includes only necessary transformation parameters
  • Version images by filename or path instead of timestamp query strings

If you want, I can help you troubleshoot this more specifically if you share:

  • your image URL format,
  • response headers,
  • and what platform/CDN you’re using (Cloudflare, Vercel, Next.js, Imgix, Cloudinary, etc.).

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.