X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a56d1036d58d45777d6adeffd5a950519bc70318..aca5308bcdc5ed5d85236731b65b728a4b870a09:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 97ab5abfc..9c6ea3b33 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -423,6 +423,7 @@ class ApplicationController < ActionController::Base end def map_layout + response.headers['Vary'] = 'X-Requested-With' request.xhr? ? false : 'map' end