How to use HTTP cache headers with PHP - Stack Overflow
... and not to forget that an ideal E-Tag is calculated based on the fact that you can read the page content. The HTML that is to be sent to the browser, BEFORE sending it to the browser that is. Generally it also implies use of buffers. Probably already ...