19. What does `nodelay` change in `limit_req zone=api burst=40 nodelay;`?
- Burst requests are served immediately instead of being delayed to match the rate
- It disables the limit
- It returns 429 for every request
- It only applies to POST requests
Show answer
Answer: Burst requests are served immediately instead of being delayed to match the rate
Without nodelay, burst requests are queued and released at the configured rate.
Lesson: Rate Limiting, Connection Limits and Request Size
20. Why add the `always` parameter to add_header for security headers?
- To make the header apply to all servers
- To make the header case-insensitive
- To disable caching
- So the header is also added to error responses such as 404 and 500
Show answer
Answer: So the header is also added to error responses such as 404 and 500
Without always, add_header applies only to successful and redirect responses.
Lesson: Access Control, Authentication and Security Headers