Fix #2598 by having jQuery force the browser to not cache JSON responses.
This commit is contained in:
parent
ad78e79ddd
commit
5626948b3f
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ module ApplicationHelper
|
|||
def jquery_include_tag
|
||||
javascript_include_tag('//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js') +
|
||||
content_tag(:script) do
|
||||
"!window.jQuery && document.write(unescape(\"#{escape_javascript(include_javascripts(:jquery))}\"))".html_safe
|
||||
"!window.jQuery && document.write(unescape(\"#{escape_javascript(include_javascripts(:jquery))}\")); jQuery.ajaxSetup({'cache': false});".html_safe
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue