Prompt

My assets are not updating after deployment, how do I fix CDN caching?

Technology / CDN & Edge Infrastructure1 observationLast seen Oct 12, 2026

Latest observation

Oct 12, 2026OpenAI APIWeb search: off

If your deployed assets aren’t updating, it’s usually because the CDN or browser is serving an old cached version. The fix depends on how your assets are named and cached.

Best fix: use cache-busting filenames

The most reliable approach is to make asset filenames change whenever the content changes, for example:

  • app.js → app.8f3a1c.js
  • styles.css → styles.91bd2a.css

Most build tools can do this automatically:

  • Webpack: use [contenthash]
  • Vite: enables hashed filenames in production by default
  • Next.js / Nuxt / CRA: typically handle this for production assets

Set different cache rules for HTML vs assets

A common setup:

  • HTML: short cache or no cache
  • Static hashed assets: long cache

Example headers:

Cache-Control: no-cache, must-revalidate

for HTML, and:

Cache-Control: public, max-age=31536000, immutable

for versioned assets.

If you’re using a CDN, make sure it respects origin changes

Check whether your CDN is:

  • honoring your origin cache headers
  • using query strings or path-based versioning correctly
  • configured to purge/refresh when deploying

You may need to:

  • purge the CDN cache
  • invalidate specific paths
  • set TTLs appropriately

Don’t forget browser cache

Even if the CDN is updated, the browser may keep old files if:

  • the filename didn’t change
  • Cache-Control is too aggressive for non-versioned files

Recommended deployment pattern

  1. Build assets with hashed filenames
  2. Serve HTML with low/no cache
  3. Serve hashed assets with long cache
  4. Purge CDN on deploy if needed

Example Nginx headers

location ~* \.(js|css|png|jpg|jpeg|gif|svg|woff2)$ {
    add_header Cache-Control "public, max-age=31536000, immutable";
}

location ~* \.html$ {
    add_header Cache-Control "no-cache, must-revalidate";
}

If you need a quick fix right now

  • Purge/invalidate the CDN cache
  • Hard refresh the browser
  • Rename the asset files
  • Check the response headers for Cache-Control, Age, ETag, and CDN-specific headers like X-Cache

If you want, tell me which CDN you use and your stack (Cloudflare, AWS CloudFront, Fastly, Netlify, Vercel, etc.), and I can give you the exact cache settings.

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.