---
title: "Configure HTML/component cache values"
slug: "configure-html-component-cache-values"
abstract: "How to configure Sitecore Content Delivery HTML/component cache values."
---
# Configure HTML/component cache values

| Applies to | Content Delivery |
| --- | --- |

The HTML cache (also known as the output cache or component cache) contains the output generated by individual renderings under different conditions.

To configure HTML/component cache values:

- Create a patch file for the `<sites>` element and set the `htmlCacheSize` attribute for each of your sites as in the following example:

    ```xml
    <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"
    xmlns:set="http://www.sitecore.net/xmlconfig/set/">
        <sitecore>
            <sites>
                <site name="website" set:htmlCacheSize="300MB"></site>
                <site name="customsite" set:htmlCacheSize="300MB"></site>
            </sites>
        </sitecore>
    </configuration>
    ```

See [Configure HTML caching](https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-manager/en/configure-html-caching.html) for information about caching options at component level.