Go to the source code of this file.
Variables | |
| $root = dirname(__DIR__, 3) | |
| $responseFile = $root . '/dbx/modules/dbxContent/include/dbxContentMediaResponse.class.php' | |
| $fallbackFile = $root . '/dbx/modules/dbxContent/dbxContent.class.php' | |
| $response = file_get_contents($responseFile) | |
| $fallback = file_get_contents($fallbackFile) | |
| if(!is_string($response)||!is_string($fallback)) foreach(array("header('ETag: ' . \$etag)", "header('Last-Modified: ' . \$lastModified)", "header('Cache-Control: private, no-cache')", 'HTTP_IF_NONE_MATCH', 'HTTP_IF_MODIFIED_SINCE',) as $needle) | if (str_contains( $response, 'max-age=3600')||str_contains( $fallback, 'max-age=31536000, immutable')||substr_count( $fallback, "header('Cache-Control: private, no-cache')")< 2) |
| $fallback = file_get_contents($fallbackFile) |
Definition at line 9 of file dbxContentMediaCache_contract_test.php.
Referenced by dbxReport\apply_multi_delete_result(), dbx_lng_resolve_file(), dbxTPL\get_design_tpl_dir_file(), dbx\dbxContact\dbxContactTicket\normalizePriority(), dbx\dbxContact\dbxContactTicket\normalizeStatus(), and dbx\dbxContent\dbxContent_permalink\segment().
| $fallbackFile = $root . '/dbx/modules/dbxContent/dbxContent.class.php' |
Definition at line 7 of file dbxContentMediaCache_contract_test.php.
| $response = file_get_contents($responseFile) |
Definition at line 8 of file dbxContentMediaCache_contract_test.php.
Referenced by dbxForm\fast_response(), dbxProcess\fast_response(), dbxReport\init(), run_web_app_request(), and dbxReport\send_multi_select_json_response().
| $responseFile = $root . '/dbx/modules/dbxContent/include/dbxContentMediaResponse.class.php' |
Definition at line 6 of file dbxContentMediaCache_contract_test.php.
| $root = dirname(__DIR__, 3) |
Definition at line 4 of file dbxContentMediaCache_contract_test.php.
| if(!is_string( $response)||!is_string( $fallback)) foreach(array("header('ETag: ' . \$etag)", "header('Last-Modified: ' . \$lastModified)", "header('Cache-Control: private, no-cache')", 'HTTP_IF_NONE_MATCH', 'HTTP_IF_MODIFIED_SINCE',) as $needle) if(str_contains($response, 'max-age=3600')||str_contains($fallback, 'max-age=31536000, immutable')||substr_count($fallback, "header('Cache-Control: private, no-cache')")< 2) | ( | ) |
Definition at line 27 of file dbxContentMediaCache_contract_test.php.