(ISC)2
301B · Question #190
Which iRule will instruct the client's browser to avoid caching HTML server responses?
The correct answer is B. when HTTP_REQUEST { if {[HTTP::header Content-Type] contains "html"} { HTTP::header insert Pragma "no-cache" HTTP::header insert Expires "Fri, 01 Jan 1990 00:00:00 GMT" HTTP::header replace Cache-Control "no-cache,no-store,must-revalidate" } }. See the full explanation below for the reasoning.
Question
Which iRule will instruct the client's browser to avoid caching HTML server responses?
Options
- Awhen HTTP_REQUEST { if {[HTTP::header Content-Type] equals "html"} { HTTP::header insert Pragma "no-cache" HTTP::header insert Expires "Fri, 01 Jan 1990 00:00:00 GMT" HTTP::header replace Cache-Control "no-cache,no-store,must-revalidate" } }
- Bwhen HTTP_REQUEST { if {[HTTP::header Content-Type] contains "html"} { HTTP::header insert Pragma "no-cache" HTTP::header insert Expires "Fri, 01 Jan 1990 00:00:00 GMT" HTTP::header replace Cache-Control "no-cache,no-store,must-revalidate" } }
- Cwhen HTTP_RESPONSE { if {[HTTP::header Content-Type] contains "html"} { } }
How the community answered
(29 responses)- A7% (2)
- B83% (24)
- C10% (3)
Community Discussion
No community discussion yet for this question.