to test using the dynamic-cached-content tag, you'd do something like this in header.php:
<!--dynamic-cached-content--><?php echo time(); ?><!--
seconds since unix epoch
NOTE: there are no spaces between the HTML comments and <?php and ?> tags. The docs say this is important.
<script src="<?php bloginfo('template_directory'); ?>/dynamic.js">
and in dynamic.js I might have: