Rest API - Request and Response FormatWhich Cache-Control directive tells the browser to always revalidate the resource before using it?Amust-revalidateBno-storeCpublicDmax-age=3600Check Answer
Step-by-Step SolutionSolution:Step 1: Identify the directive for revalidationThe 'must-revalidate' directive forces the client to check with the server before using cached data.Step 2: Compare with other directives'no-store' prevents caching, 'public' allows caching by any cache, 'max-age' sets cache time but doesn't force revalidation.Final Answer:must-revalidate -> Option AQuick Check:must-revalidate = Revalidate before use [OK]Quick Trick: Use must-revalidate to force cache check before use [OK]Common Mistakes:Confusing no-store with must-revalidateThinking max-age forces revalidationAssuming public disables revalidation
Master "Request and Response Format" in Rest API9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Rest API Quizzes HTTP Methods - Why HTTP methods define intent - Quiz 1easy HTTP Status Codes - 429 Too Many Requests - Quiz 11easy HTTP Status Codes - 200 OK and 201 Created - Quiz 4medium HTTP Status Codes - 401 Unauthorized vs 403 Forbidden - Quiz 14medium Query Parameters and Filtering - Filtering by field values - Quiz 12easy Query Parameters and Filtering - Filtering by field values - Quiz 3easy REST API Fundamentals - REST vs SOAP vs GraphQL comparison - Quiz 9hard Request and Response Format - Why consistent formats improve usability - Quiz 11easy Request and Response Format - Content negotiation - Quiz 14medium Request and Response Format - Error response format - Quiz 15hard