Новости | Документация | Download | Webboard | FAQ | Поиск | Контакты


HttpResponse::setCacheControl

(PECL pecl_http >= 0.10.0)

HttpResponse::setCacheControlSet cache control

Описание

static bool HttpResponse::setCacheControl ( string $control [, int $max_age= 0 [, bool $must_revalidate= true ]] )

Define a custom Cache-Control header, usually being private or public;

Список параметров

control

the primary cache control setting

max_age

the max-age in seconds, suggesting how long the cache entry is valid on the client side

must_revalidate

whether the cached entity should be revalidated by the client for every request

Возвращаемые значения

Returns TRUE on success, or FALSE if control does not match one of public, private or no-cache.

Смотрите также






  Copyright Apache.ru © 1999-2017, All Rights Reserved Разработка сайта: Inside.ru  
  РЕКЛАМА НА САЙТЕ: |