HttpResponse::setCache

(PECL pecl_http >= 0.10.0)

HttpResponse::setCacheSet cache

Description

static bool HttpResponse::setCache ( bool $cache )

Whether it should be attempted to cache the entity.

This will result in necessary caching headers and checks of clients If-Modified-Since and If-None-Match headers. If one of those headers matches a 304 Not Modified status code will be issued.

Note:

If you're using sessions, be sure that you set session.cache_limiter to something more appropriate than "no-cache"!

Parameters

cache

whether caching should be attempted

Return Values

Returns TRUE on success or FALSE on failure.

See Also

[an error occurred while processing the directive]

Коментарии

404 Not Found

404 Not Found


nginx

    Поддержать сайт на родительском проекте КГБ