In order to turn on layout caching, the following should be done:

  1. Ensure that the following web.config setting is set to false.
    Note that layout caching is disabled by default:
    <setting name="DisableBrowserCaching" value="true">

  2. Add “OutputCache” page directive with appropriate parameters to the layout (ASPX page) that you would like to cache.