Send appropriate Vary header
Fixes an issue where the XHR response was sometimes displayed when navigating back to a pushState based history entry rather than the full page.
This commit is contained in:
parent
0a040c7a79
commit
261862a8dd
1 changed files with 1 additions and 0 deletions
|
@ -423,6 +423,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def map_layout
|
||||
response.headers['Vary'] = 'X-Requested-With'
|
||||
request.xhr? ? false : 'map'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue