← Quiz: HTTP Methods, Status Codes and Headers: all 10 questions
Quiz: HTTP Methods, Status Codes and Headers · Question 6 of 10
Why should a GET handler never delete or update data?
Why should a GET handler never delete or update data?
- A.GET requests are slower
- B.GET is meant to be safe; browsers, crawlers and caches send GETs freely and may repeat them
- C.GET cannot reach the database
- D.Express blocks it
Answer & explanation
Correct answer: GET is meant to be safe; browsers, crawlers and caches send GETs freely and may repeat them
A crawler following a link like /delete?id=7 could destroy data.
Can you get the rest right without peeking?
Take the timed Quiz: HTTP Methods, Status Codes and Headers quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →