fix: docsify-updated is undefined
This commit is contained in:
parent
a8c73ee2b9
commit
b2b474264f
2 changed files with 6 additions and 3 deletions
|
|
@ -45,7 +45,8 @@ export function get (url, hasBar = false) {
|
|||
const result = cache[url] = {
|
||||
content: target.response,
|
||||
opt: {
|
||||
updatedAt: xhr.getResponseHeader('last-modified')
|
||||
updatedAt: xhr.getResponseHeader('last-modified') ||
|
||||
xhr.getResponseHeader('expires')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue