mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
9c9872ebac
The X-Requested-With header does modify the result of Director::is_ajax and so this should strictly be in there. In practise, this can cause issues with CDNs such as Incapsula, and LeftAndMain adds this vary header itself, which is the principle place where Director::is_ajax is used.
32 lines
794 B
YAML
32 lines
794 B
YAML
---
|
|
Name: coreconfig
|
|
---
|
|
Upload:
|
|
# Replace an existing file rather than renaming the new one.
|
|
replaceFile: false
|
|
MySQLDatabase:
|
|
# You are advised to backup your tables if changing settings on an existing database
|
|
# `connection_charset` and `charset` should be equal, similarly so should `connection_collation` and `collation`
|
|
connection_charset: utf8
|
|
connection_collation: utf8_general_ci
|
|
charset: utf8
|
|
collation: utf8_general_ci
|
|
HTTP:
|
|
cache_control:
|
|
no-cache: "true"
|
|
no-store: "true"
|
|
must-revalidate: "true"
|
|
vary: "X-Forwarded-Protocol"
|
|
LeftAndMain:
|
|
dependencies:
|
|
versionProvider: %$SilverStripeVersionProvider
|
|
SilverStripeVersionProvider:
|
|
modules:
|
|
silverstripe/framework: Framework
|
|
---
|
|
Only:
|
|
environment: dev
|
|
---
|
|
HTTP:
|
|
disable_http_cache: true
|