Skip to content

Commit 556575f

Browse files
authored
feat: update nginx.conf 使用固定编译入口可能导致浏览器使用缓存js文件,而此配置可以解决 (vbenjs#3045)
1 parent e477875 commit 556575f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ http {
3030
add_header 'Content-Length' 0;
3131
return 204;
3232
}
33+
if ($request_filename ~* ^.*?.(html|htm|js)$) {
34+
add_header Cache-Control no-cache;
35+
}
3336
}
3437
}
3538
}

0 commit comments

Comments
 (0)