From 8a6a8db730b14abad4ec65cb16c0dcec2e93cb50 Mon Sep 17 00:00:00 2001 From: Nathan Lowe Date: Fri, 3 Jul 2015 17:28:43 -0400 Subject: [PATCH] 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/, 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 --- lib/gollum/public/gollum/livepreview/js/livepreview.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gollum/public/gollum/livepreview/js/livepreview.js b/lib/gollum/public/gollum/livepreview/js/livepreview.js index 5d90607c..60280d93 100644 --- a/lib/gollum/public/gollum/livepreview/js/livepreview.js +++ b/lib/gollum/public/gollum/livepreview/js/livepreview.js @@ -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 ); }