You are here

protected property DuplicateContentPreventionMiddleware::$forbiddenExtensions in CDN 8.3

The file extensions for which this middleware will act.

Hardcoded to avoid costly I/O.

Type: string[]

File

src/StackMiddleware/DuplicateContentPreventionMiddleware.php, line 81

Class

DuplicateContentPreventionMiddleware
Redirects CDN user agents' requests for HTML to the canonical location.

Namespace

Drupal\cdn\StackMiddleware

Code

protected $forbiddenExtensions = [
  '',
  'html',
  'htm',
  'php',
];