Bird
0
0

You want to serve Remix app assets via a CDN but keep API requests routed to your origin server. Which architecture best supports this?

hard📝 Application Q8 of 15
Remix - Performance
You want to serve Remix app assets via a CDN but keep API requests routed to your origin server. Which architecture best supports this?
ADisable CDN and serve all content from origin
BConfigure CDN to cache only static assets and bypass API paths
CRoute all requests through CDN including API calls
DUse CDN only for API endpoints
Step-by-Step Solution
Solution:
  1. Step 1: Separate static assets from API requests

    Static assets benefit from CDN caching; API calls require origin processing.
  2. Step 2: Configure CDN rules

    Set CDN to cache assets (e.g., /assets/*) and forward API paths (e.g., /api/*) directly to origin.
  3. Final Answer:

    Configure CDN to cache only static assets and bypass API paths -> Option B
  4. Quick Check:

    CDN caches assets, origin handles API [OK]
Quick Trick: Cache assets, bypass API on CDN [OK]
Common Mistakes:
MISTAKES
  • Caching API calls causing stale data
  • Routing all traffic through CDN unnecessarily
  • Disabling CDN loses performance benefits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Remix Quizzes