make the blog data not be cached

This commit is contained in:
Ellpeck 2019-02-23 16:30:23 +01:00
parent 6b1841beb6
commit 59f937b868

View file

@ -1,5 +1,9 @@
let converter = new showdown.Converter();
$.getJSON("blog/posts.json", function (json) {
$.ajax({
dataType: "json",
url: "blog/posts.json",
cache: false,
success: function (json) {
let list = $('#blog-list');
for (let i = json.length - 1; i >= 0; i--) {
var obj = json[i];
@ -42,6 +46,7 @@ $.getJSON("blog/posts.json", function (json) {
}, 0)
}
}
}
});
function openBlogPost(id) {