dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxContentMediaCache_contract_test.php File Reference

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)

Variable Documentation

◆ $fallback

◆ $fallbackFile

$fallbackFile = $root . '/dbx/modules/dbxContent/dbxContent.class.php'

Definition at line 7 of file dbxContentMediaCache_contract_test.php.

◆ $response

◆ $responseFile

$responseFile = $root . '/dbx/modules/dbxContent/include/dbxContentMediaResponse.class.php'

Definition at line 6 of file dbxContentMediaCache_contract_test.php.

◆ $root

$root = dirname(__DIR__, 3)

Definition at line 4 of file dbxContentMediaCache_contract_test.php.

◆ if

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.