Bird
0
0

If a CDN caches an old version of a Remix app's JavaScript file, which strategy helps ensure users get the latest version?

medium📝 Predict Output Q5 of 15
Remix - Performance
If a CDN caches an old version of a Remix app's JavaScript file, which strategy helps ensure users get the latest version?
AUse HTTP 301 redirects for assets
BSet Cache-Control to no-cache for all assets
CUse versioned filenames or hashes in asset URLs
DDisable CDN caching entirely
Step-by-Step Solution
Solution:
  1. Step 1: Identify cache invalidation best practice

    Versioned or hashed filenames change URLs when content changes.
  2. Step 2: Understand why this works with CDNs

    CDNs treat new URLs as new assets, so users get fresh files.
  3. Final Answer:

    Use versioned filenames or hashes in asset URLs -> Option C
  4. Quick Check:

    Cache busting = versioned filenames [OK]
Quick Trick: Versioned filenames force CDN to fetch new files [OK]
Common Mistakes:
MISTAKES
  • Disabling CDN caching reduces performance
  • Setting no-cache hurts load speed
  • Using redirects does not update cached content

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Remix Quizzes