Back to PageController class

Method _setEtag

protected void
_setEtag
(mixed $etag)
Set the ETag header in the response
Parameters
  • string $etag The entity tag (etag) to set
Returns
  • void
Since
  • 1.7.0

Method _setEtag - Source code

/**
 * Set the ETag header in the response
 *
 * @param   string  $etag  The entity tag (etag) to set
 *
 * @return  void
 *
 * @since   1.7.0
 */
protected function _setEtag($etag)
{
    Factory::getApplication()->setHeader('ETag', '"' . $etag . '"', true);
}