Fix #1030: Disable AJAX Cach in Live Editor

Internet Explorer caches all AJAX get requests and decides when to expire
them in the cache. This commit disables caching on the GET request to
/data/<PAGE NAME>, which fixes IE displaying old page data when using the
live editor.

See http://www.dashbay.com/2011/05/internet-explorer-caches-ajax/ and
https://stackoverflow.com/questions/4303829/how-to-prevent-a-jquery-ajax-request-from-caching-in-internet-explorer
This commit is contained in:
Nathan Lowe
2015-07-03 17:28:43 -04:00
parent 3642370f11
commit 8a6a8db730
@@ -394,6 +394,7 @@ var applyTimeout = function () {
jQuery.ajax( {
type: 'GET',
url: baseUrl + '/data/' + path + key_no_leading_slash( 'page' ),
cache: false,
success: function( data ) {
editorSession.setValue( data );
}