Bird
0
0

You want to configure your Remix app to serve static assets via a CDN while ensuring cache busting on asset updates. Which approach is best?

hard📝 Application Q15 of 15
Remix - Performance
You want to configure your Remix app to serve static assets via a CDN while ensuring cache busting on asset updates. Which approach is best?
AUse a fixed asset URL and rely on browser cache only
BSet CDN cache to never expire and manually clear cache on updates
CServe assets directly from the Remix server without CDN
DUse hashed filenames for assets and update CDN cache rules accordingly
Step-by-Step Solution
Solution:
  1. Step 1: Understand cache busting with CDN

    Hashed filenames change when content changes, forcing CDN and browsers to fetch new files.
  2. Step 2: Evaluate options for cache management

    Use hashed filenames for assets and update CDN cache rules accordingly uses best practice: hashed filenames plus CDN cache rules. Others risk stale content or no CDN benefits.
  3. Final Answer:

    Use hashed filenames for assets and update CDN cache rules accordingly -> Option D
  4. Quick Check:

    Cache busting = hashed filenames + CDN cache rules [OK]
Quick Trick: Hash filenames to bust cache on updates [OK]
Common Mistakes:
MISTAKES
  • Setting CDN cache to never expire causes stale content
  • Not using CDN reduces performance benefits
  • Relying only on browser cache misses CDN caching

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Remix Quizzes