Skip to content

Commit

Permalink
fix(#793): cdn_version: false
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG committed Aug 15, 2022
1 parent a2a2d90 commit cf60678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ cdn:
# 静态资源版本控制
# 本地文件使用文件内容的hash值作为版本号(app.8c1e7c88.js) 其他为时间戳 (?time=1648684470140)
# 建议静态资源设置标头 浏览器缓存一年边缘缓存一个月 cache-control: max-age=86400, s-maxage=31536000 如果有更新记得刷新缓存
cdn_version: true
cdn_version: false
# volantis static 静态资源文件 npm 包 CDN 地址 (后面加 "/" )
# https://github.com/volantis-x/volantis-static
volantis_static_cdn: https://unpkg.com/[email protected]/
Expand Down
2 changes: 1 addition & 1 deletion scripts/helpers/revisioned.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const getRevisionedFilePath = (filePath, revision) => {

const revisioned = (filePath) => {
if (!hexo.theme.config.cdn_version) {
return;
return filePath;
}
let arg = process.argv[2];
if (arg == "s" || arg == "server") {
Expand Down

0 comments on commit cf60678

Please sign in to comment.