mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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.
This commit is contained in:
parent
00a263092e
commit
9c9872ebac
@ -16,7 +16,7 @@ HTTP:
|
|||||||
no-cache: "true"
|
no-cache: "true"
|
||||||
no-store: "true"
|
no-store: "true"
|
||||||
must-revalidate: "true"
|
must-revalidate: "true"
|
||||||
vary: "X-Requested-With, X-Forwarded-Protocol"
|
vary: "X-Forwarded-Protocol"
|
||||||
LeftAndMain:
|
LeftAndMain:
|
||||||
dependencies:
|
dependencies:
|
||||||
versionProvider: %$SilverStripeVersionProvider
|
versionProvider: %$SilverStripeVersionProvider
|
||||||
|
Loading…
Reference in New Issue
Block a user