Microsoft
70-515 · Question #95
You are developing an ASP.NET web application. The application will contain a page that is customized for various browsers. The application will use output caching to optimize performance. You need…
The correct answer is A. VaryByCustom="browser". See the full explanation below for the reasoning.
Question
You are developing an ASP.NET web application. The application will contain a page that is customized for various browsers. The application will use output caching to optimize performance. You need to ensure that the page is cached by browser type and major version only. Which attribute should you add to the OutputCache directive?
Options
- AVaryByCustom="browser"
- BVaryByCustom="User-Agent"
- CVaryByHeader="browser"
- DVaryByHeader="User-Agent"
How the community answered
(31 responses)- A71% (22)
- B6% (2)
- C19% (6)
- D3% (1)
Community Discussion
No community discussion yet for this question.