Skip to content

Commit

Permalink
Remove Accept-Language from vary header by default
Browse files Browse the repository at this point in the history
This option can be added manually by assets as and when required.
  • Loading branch information
bajb committed Apr 13, 2016
1 parent 3ab2dbe commit b53f3b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AssetResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public function createResponse(IAsset $asset, Request $request)
$response->headers->set('Content-Type', $asset->getContentType());
$response->headers->set('X-Content-Type-Options', 'nosniff');

//Ensure the cache varies on the language and encoding
//Ensure the cache varies on the encoding
//Domain specific content will vary on the uri itself
$response->headers->set("Vary", "Accept-Encoding,Accept-Language");
$response->headers->set("Vary", "Accept-Encoding");

$content = $asset->getContent();

Expand Down

0 comments on commit b53f3b3

Please sign in to comment.