Bird
0
0

After configuring a CDN, users report stale CSS files. Which fix addresses this issue in Remix apps?

medium📝 Debug Q7 of 15
Remix - Performance
After configuring a CDN, users report stale CSS files. Which fix addresses this issue in Remix apps?
ASet Cache-Control to max-age=31536000 for CSS
BUse HTTP 404 for missing CSS files
CDisable CDN caching for CSS files
DEnable asset fingerprinting to change filenames on updates
Step-by-Step Solution
Solution:
  1. Step 1: Identify cause of stale CSS

    CDN caches CSS files aggressively, serving old versions.
  2. Step 2: Apply asset fingerprinting

    Fingerprinting changes filenames when content changes, forcing CDN to fetch new files.
  3. Final Answer:

    Enable asset fingerprinting to change filenames on updates -> Option D
  4. Quick Check:

    Fingerprinting prevents stale CDN assets [OK]
Quick Trick: Fingerprint assets to avoid stale CDN cache [OK]
Common Mistakes:
MISTAKES
  • Setting long max-age without fingerprinting
  • Disabling CDN caching reduces performance
  • Using 404 does not refresh cache

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Remix Quizzes