Home > PHP > Function > > HttpResponse::setCache()

HttpResponse::setCache()

HttpResponse::setCache - Set cache

Syntax

static HttpResponse::setCache (bool $cache)

Arguments

  • cache - whether caching should be attempted

Description

Whether it should be attempted to cache the entity.

Version

PHP PECL pecl_http >= 0.10.0

Return value

Returns TRUE on success or FALSE on failure.