Bird
0
0

Why might a server choose to use a weak ETag instead of a strong ETag?

hard📝 Conceptual Q10 of 15
Rest API - Caching Strategies

Why might a server choose to use a weak ETag instead of a strong ETag?

ATo force clients to always re-download the resource
BTo identify resources by their size only
CTo allow minor changes that do not affect resource semantics
DTo disable caching entirely
Step-by-Step Solution
Solution:
  1. Step 1: Understand difference between weak and strong ETags

    Weak ETags tolerate minor changes that don't affect meaning; strong ETags require exact match.
  2. Step 2: Identify why weak ETags are used

    They allow caching even if minor, insignificant changes occur.
  3. Final Answer:

    To allow minor changes that do not affect resource semantics -> Option C
  4. Quick Check:

    Weak ETags tolerate minor changes [OK]
Quick Trick: Weak ETags allow caching despite minor resource changes [OK]
Common Mistakes:
MISTAKES
  • Thinking weak ETags disable caching
  • Confusing weak with strong ETags
  • Assuming weak ETags force reload

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes