I set an ETag that is based on a static version number because the only time I would want to process the file is if the version changes.
<?php
if (isset($_SERVER['HTTP_IF_NONE_MATCH']) && $_SERVER['HTTP_IF_NONE_MATCH'] == sha1('version 1.0')) {
header('HTTP/1.1 304 Not Modified');
exit;
}
header('Cache-Control: max-age=604800, public');
header('ETag: ' . sha1('version 1.0') );
?>