]> git.openstreetmap.org Git - rails.git/commitdiff
Remove IE<10 workaround
authorMarwin Hochfelsner <50826859+hlfan@users.noreply.github.com>
Sat, 8 Feb 2025 10:45:53 +0000 (11:45 +0100)
committerMarwin Hochfelsner <50826859+hlfan@users.noreply.github.com>
Sun, 9 Feb 2025 05:51:56 +0000 (06:51 +0100)
app/assets/javascripts/index.js

index 4555553ee7fb6868950d208a1b0233d2928d73f2..a94131443d410b06b557a08aa306b1b90084edcc 100644 (file)
@@ -38,14 +38,6 @@ $(document).ready(function () {
 
     $("#sidebar_loader").show().addClass("delayed-fade-in");
 
-    // IE<10 doesn't respect Vary: X-Requested-With header, so
-    // prevent caching the XHR response as a full-page URL.
-    if (content_path.indexOf("?") >= 0) {
-      content_path += "&xhr=1";
-    } else {
-      content_path += "?xhr=1";
-    }
-
     $("#sidebar_content")
       .empty();