Skip to content

Commit 798e8ee

Browse files
committed
静态文件添加参数
1 parent 6600ae6 commit 798e8ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

template/footer.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript" src="<%=relative_path%>js/dt.js"></script>
2-
<script type="text/javascript" src="<%=relative_path%>js/index.js"></script>
1+
<script type="text/javascript" src="<%=relative_path%>js/dt.js?v=<%=new Date().getTime()%>"></script>
2+
<script type="text/javascript" src="<%=relative_path%>js/index.js?v=<%=new Date().getTime()%>"></script>
33
</body>
44
</html>

template/header.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
<meta name="keywords" content="Linux,Command,命令大全,Linux命令手册<%=describe.n?','+describe.n:''%>">
88
<title><%=describe.n?describe.n+' - ':''%>Linux Command</title>
99
<link rel="shortcut icon" href="<%=relative_path%>img/favicon.ico">
10-
<link rel="stylesheet" type="text/css" href="<%=relative_path%>css/index.css">
10+
<link rel="stylesheet" type="text/css" href="<%=relative_path%>css/index.css?v=<%=new Date().getTime()%>">
1111
</head>
1212
<body>

0 commit comments

Comments
 (0)