Replace Vary header with explicit xhr=1 param

IE10 doesn't respect the Vary header.
This commit is contained in:
John Firebaugh 2013-11-08 17:11:54 -08:00
parent 1ae7872ed8
commit a5b784bdf7
4 changed files with 4 additions and 5 deletions

View file

@ -51,7 +51,7 @@ OSM.Export = function(map) {
page.pushstate = page.popstate = function(path) {
$("#export_tab").addClass("current");
$("#sidebar_content").load(path, function(a, b, xhr) {
$("#sidebar_content").load(path + "?xhr=1", function(a, b, xhr) {
if (xhr.getResponseHeader('X-Page-Title')) {
document.title = xhr.getResponseHeader('X-Page-Title');
}

View file

@ -99,7 +99,7 @@ OSM.History = function(map) {
page.pushstate = page.popstate = function(path) {
$("#history_tab").addClass("current");
$("#sidebar_content").load(path, function(a, b, xhr) {
$("#sidebar_content").load(path + "?xhr=1", function(a, b, xhr) {
if (xhr.getResponseHeader('X-Page-Title')) {
document.title = xhr.getResponseHeader('X-Page-Title');
}