You are here

function akamai_context_http_header_def in Akamai 6

Same name and namespace in other branches
  1. 6.2 akamai.module \akamai_context_http_header_def()

Implementation of hook_context_http_header_def() from context_http_header module These are the form items that display for the http header context reaction.

File

./akamai.module, line 253
akamai.module Integration with the Akamai CDN Cache Control Web Service.

Code

function akamai_context_http_header_def() {
  return array(
    'akamai_ttl' => array(
      '#title' => 'TTL',
      '#type' => 'textfield',
      '#description' => t("Specifies a Time-To-Live (TTL) for the object in the edge server’s cache. This is themaximum amount of time the content will be served before the edge server will issue an If Modified Since request back to the content provider to check whether the object content has changed. The content is an integer, followed by a unit specifier Current unit specifiers are: 's' (seconds), 'm' (minutes), 'h' (hours), 'd' (days)."),
    ),
    'akamai_nostore' => array(
      '#title' => 'No Store',
      '#type' => 'radios',
      '#description' => t("Specifies that the object is not to be cached. The edge server will retrieve the object from the origin server upon every request."),
      '#options' => array(
        FALSE => t('Not Specified'),
        'on' => t('On'),
        'off' => t('Off'),
      ),
    ),
    'akamai_bypass_cache' => array(
      '#title' => 'Bypass Cache',
      '#type' => 'radios',
      '#description' => t("When enabled, bypass-cache causes the request to be passed without caching. It's similar to no-store, except that it doesn't remove the cache entry if one already exists. This is useful if the object returned is an alternate for the content normally delivered"),
      '#options' => array(
        FALSE => t('Not Specified'),
        'on' => t('On'),
        'off' => t('Off'),
      ),
    ),
    'akamai_dynamic_content_assembly' => array(
      '#title' => 'Dynamic Content Assembly (dca)',
      '#type' => 'radios',
      '#description' => t('Nominates the request for Dynamic Content Assembly. Valid argument is a type of processing. This header is used to nominate the object for ESI processing. At this time, "esi" and "akamaizer" specify the available processing types. These headers tell the edge server to process the objects in the ESI processor. The other header dca=noop, tells the edge server not to process the associated content.'),
      '#options' => array(
        FALSE => t('Not Specified'),
        'noop' => t('noop'),
        'esi' => t('esi'),
        'akamaizer' => t('akamaizer'),
      ),
    ),
  );
}