silverstripe-framework/_config/config.yml
Sam Minnee 9c9872ebac FIX: Remove X-Requested-With from default Vary header.
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.
2018-07-04 13:35:47 +12:00

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