bump: 3.7.1
This commit is contained in:
parent
b2b474264f
commit
b948cb06d7
13 changed files with 26 additions and 18 deletions
|
|
@ -666,7 +666,8 @@ function get (url, hasBar) {
|
|||
var result = cache[url] = {
|
||||
content: target.response,
|
||||
opt: {
|
||||
updatedAt: xhr.getResponseHeader('last-modified')
|
||||
updatedAt: xhr.getResponseHeader('last-modified') ||
|
||||
xhr.getResponseHeader('expires')
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -3273,10 +3274,13 @@ function renderMixin (proto) {
|
|||
|
||||
proto._renderMain = function (text, opt) {
|
||||
var this$1 = this;
|
||||
if ( opt === void 0 ) opt = {};
|
||||
|
||||
callHook(this, 'beforeEach', text, function (result) {
|
||||
var html = this$1.isHTML ? result : markdown(result);
|
||||
html = formatUpdated(html, opt.updatedAt, this$1.config.formatUpdated);
|
||||
if (opt.updatedAt) {
|
||||
html = formatUpdated(html, opt.updatedAt, this$1.config.formatUpdated);
|
||||
}
|
||||
|
||||
callHook(this$1, 'afterEach', html, function (text) { return renderMain.call(this$1, text); });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue