summaryrefslogtreecommitdiff
path: root/core/config/constants.php
blob: d2ecc4178c3c0da92e170cfdeb55293d7a8205d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/** Constants
 * ---
 */

// COMMON CONTENT TYPES
// -----------------------------------------------------------------------------
define('COMMON_CONTENT_TYPES', array(
    'text' => 'text/html; charset=UTF-8',
    'html' => 'text/html; charset=UTF-8',
    'json' => 'application/json; charset=utf-8',
    'js'   => 'application/javascript; charset=utf-8',
    'css'  => 'text/css',
    'png'  => 'image/png',
    'jpeg' => 'image/jpeg',
    'webp' => 'image/web'
  )
);


// PROXY_FLAGS
// -----------------------------------------------------------------------------
// These options represend altered/non-default behaviour
// and will be resolved bitwise, so use powers of 2
// -----------------------------------------------------------------------------
define('PROXY_CACHE_ERRORS', 1);  // cache result even if error
define('PROXY_IGNORE_CACHE', 2);  // ignore cache if exist
define('PROXY_DO_NOT_CACHE', 4);  // do not cache result