HttpResponse::setCache

(PECL pecl_http >= 0.10.0)

HttpResponse::setCacheSet cache

설명

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"!

인수

cache

whether caching should be attempted

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

참고

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top