Format of an ECCU Request

An ECCU file is a straight text file in a simplified XML format. The tags available in the file are:

  • <eccu> </eccu> as opening and closing tags to indicate the type of the file.
  • <match> tags to define the URI for the object or some other attributes by which to identify the objects to be revalidated.
  • <revalidate> to specify a timestamp value. Objects with older timestamps must be revalidated before they are served. The following is a practical example of an ECCU file that purges the object referenced by the following URL/path:

In simplified form the file would look like this.

<eccu>
    <match: tagname value="value">
        <revalidate>epochtime.| now </revalidate>
    </match:tagname>
</eccu>

The following is a practical example of an ECCU file that purges the object referenced by the following URL/path:

http://www.example.com/products/images/*.gif, *.jpg

<eccu>
    <match:recursive-dirs value=”products”>
        <match:recursive-dirs value=”images”>
           <match:ext value=”gif jpg”>
                 <revalidate>1046581729</revalidate>
           </match:ext>
        </match:recursive-dirs>
    </match:recursive-dirs>
</eccu>

Note that this general invalidation (that is, all files under the images subdirectory with gif and jpg extensions, as opposed to specifying specific files) is the kind of refresh that ECCU is designed to provide.