Bird
0
0

Why might setting Cache-Control: public, max-age=86400 on a Remix loader response cause stale data issues?

hard📝 Conceptual Q10 of 15
Remix - Performance
Why might setting Cache-Control: public, max-age=86400 on a Remix loader response cause stale data issues?
ABecause max-age=86400 disables caching
BBecause public caching allows proxies to cache data which may not update immediately
CBecause public means only the browser caches data
DBecause max-age=86400 means cache expires immediately
Step-by-Step Solution
Solution:
  1. Step 1: Understand public directive

    public allows shared caches like proxies to store the response.
  2. Step 2: Understand max-age=86400

    max-age=86400 caches data for 24 hours, so proxies may serve stale data during this time.
  3. Step 3: Identify stale data risk

    Proxies caching for long time can cause users to see outdated data until cache expires.
  4. Final Answer:

    Because public caching allows proxies to cache data which may not update immediately -> Option B
  5. Quick Check:

    Public + long max-age risks stale proxy cache [OK]
Quick Trick: Public cache can cause stale proxy data if max-age is long [OK]
Common Mistakes:
MISTAKES
  • Thinking max-age disables caching
  • Misunderstanding public means browser-only
  • Assuming max-age=86400 means immediate expiry

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Remix Quizzes