Permalink
Browse files

Add Http Vary header when response varies by accept header

  • Loading branch information...
1 parent 7f18e08 commit 755335876db672e64a28e9e4691107655c4a7fbc @andrerom andrerom committed Feb 2, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 modules/ezjscore/call.php
@@ -56,9 +56,14 @@
// Allow get parameter to be set to test in browser
if ( isset( $_GET['ContentType'] ) )
+{
$contentType = $_GET['ContentType'];
+}
else
+{
$contentType = ezjscAjaxContent::getHttpAccept();
+ header('Vary: Accept');
+}
// set http headers
if ( $contentType === 'xml' )

1 comment on commit 7553358

Contributor

gggeek commented on 7553358 Feb 2, 2011

yes

Please sign in to comment.