$lastModified ,'encoding' => $enc )); $cg->sendHeaders(); if ($cg->cacheIsValid) { // we're done exit(); } // output encoded content $title = 'ConditionalGet + Encoder'; $explain = '
Using ConditionalGet and Encoder is straightforward. First impliment the ConditionalGet, then if the cache is not valid, encode and send the content
This script emulates a document that changes every ' .$every. ' seconds.
This is version: ' . date('r', $lastModified) . '