work around a bug in iOS 6 where ajax requests get cached and only work once

master
Dale Price 2013-03-14 20:55:02 -05:00
parent 625ad32f6c
commit 088253e564
1 changed files with 6 additions and 0 deletions

View File

@ -1391,6 +1391,12 @@ $(function() {
webcamViewModel,
gcodeViewModel
);
//work around a stupid iOS6 bug where ajax requests get cached and only work once, as described at http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results
$.ajaxSetup({
type: 'POST',
headers: { "cache-control": "no-cache" }
});
//~~ Show settings - to ensure centered
$('#navbar_show_settings').click(function() {