added cache-buster to template xhr urls -- closed #1392

This commit is contained in:
Julian Lam
2014-04-16 20:19:26 -04:00
parent 7c00bce63c
commit 126260a027
2 changed files with 2 additions and 1 deletions

View File

@@ -209,7 +209,7 @@ var ajaxify = ajaxify || {};
callback(templates.cache[template]);
} else {
$.ajax({
url: RELATIVE_PATH + '/templates/' + template + '.tpl',
url: RELATIVE_PATH + '/templates/' + template + '.tpl' + (config['cache-buster'] ? '?v=' + config['cache-buster'] : ''),
type: 'GET',
success: function(data) {
callback(data.toString());