MuleSoft Certified Platform Architect – Level 1 — Question 30
The responses to some HTTP requests can be cached depending on the HTTP verb used in the request.
According to the HTTP specification, for what HTTP verbs is this safe to do?
Answer options
- A. PUT, POST, DELETE
- B. GET, HEAD, POST
- C. GET, PUT, OPTIONS
- D. GET, OPTIONS, HEAD
Correct answer: D
Explanation
According to the HTTP specification, GET, OPTIONS, and HEAD are considered safe methods for caching responses as they do not alter server state. In contrast, methods like PUT, POST, and DELETE modify resources and are therefore not safe for caching.