Match a Specific File

To match a specific filename, the syntax is:

<match:filename value="file.ext" nocase="off">
</match:filename>

The value attribute takes a string that is the exact filename to match.

The nocase attribute is a Boolean to specify whether or not the match should be case-sensitive. A setting of “on” makes the match case-insensitive. The default is “off.”

The following metadata example matches the index.html file in the root directory of a domain only.

<match:this-dir value="This Directory Only">
    <match:filename value="index.html">
         <revalidate>1046581729</revalidate>
    </match:filename>
</match:this-dir>