Send the right Vary headers.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 16 Nov 2014 12:35:48 +0000 (13:35 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 16 Nov 2014 12:35:48 +0000 (13:35 +0100)
www/serve-analysis.js

index 19ab936..868363d 100644 (file)
@@ -111,6 +111,7 @@ var send_json = function(response, accept_gzip, num_viewers) {
                'Access-Control-Allow-Origin': 'http://analysis.sesse.net',
                'Access-Control-Expose-Headers': 'X-Remoteglot-Last-Modified, X-Remoteglot-Num-Viewers',
                'Expires': 'Mon, 01 Jan 1970 00:00:00 UTC',
                'Access-Control-Allow-Origin': 'http://analysis.sesse.net',
                'Access-Control-Expose-Headers': 'X-Remoteglot-Last-Modified, X-Remoteglot-Num-Viewers',
                'Expires': 'Mon, 01 Jan 1970 00:00:00 UTC',
+               'Vary': 'Accept-Encoding',
        };
 
        if (accept_gzip) {
        };
 
        if (accept_gzip) {