fix: docsify-updated is undefined

This commit is contained in:
qingwei.li 2017-05-19 08:36:45 +08:00
commit b2b474264f
No known key found for this signature in database
GPG key ID: B6DDC2F7AE80B2F4
2 changed files with 6 additions and 3 deletions

View file

@ -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')
}
}