nerdexam
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)
  • A
    71% (22)
  • B
    6% (2)
  • C
    19% (6)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice