class CRM_Utils_Http

Methods

static int|NULL
parseExpiration(array $headers)

Parse the expiration time from a series of HTTP headers.

static array
parseCacheControl(string $value)

No description

Details

at line 42
static int|NULL parseExpiration(array $headers)

Parse the expiration time from a series of HTTP headers.

Parameters

array $headers

Return Value

int|NULL Expiration tme as seconds since epoch, or NULL if not cacheable.

at line 63
static array parseCacheControl(string $value)

Parameters

string $value Ex: "max-age=86400, public".

Return Value

array Ex: Array("max-age"=>86400, "public"=>1).