make the blog data not be cached
This commit is contained in:
parent
6b1841beb6
commit
59f937b868
1 changed files with 43 additions and 38 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue