public function _etag($id, $type = 'strong') {
        $id = (($type === 'weak') ? 'W/' : '').$id;

        $this->response()->header('ETag', $id);

        if (isset($_SERVER['HTTP_IF_NONE_MATCH']) &&
            $_SERVER['HTTP_IF_NONE_MATCH'] === $id) {
            $this->halt(304);
        }
    }
public function _etag($id, $type = 'strong') {
        $id = (($type === 'weak') ? 'W/' : '').$id;

        $this->response()->header('ETag', $id);

        if (isset($_SERVER['HTTP_IF_NONE_MATCH']) &&
            $_SERVER['HTTP_IF_NONE_MATCH'] === $id) {
            $this->halt(304);
        }
    }
public function _etag ( $ id , $ type = 'strong' ) { $ id = ( ( $ type === 'weak' ) ? 'W/' : '' ) . $ id ; $ this -> response ( ) -> header ( 'ETag' , $ id ) ; if ( isset ( $ _SERVER [ 'HTTP_IF_NONE_MATCH' ] ) && $ _SERVER [ 'HTTP_IF_NONE_MATCH' ] === $ id ) { $ this -> halt ( 304 ) ; } }
Handles ETag HTTP caching.

@param string $id ETag identifier
@param string $type ETag type
Handles ETag HTTP caching .