Browse Source
feat: update nginx.conf 使用固定编译入口可能导致浏览器使用缓存js文件,而此配置可以解决 (#3045)
pull/3049/head
胤玄
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
nginx.conf
|
|
|
@ -30,6 +30,9 @@ http { |
|
|
|
add_header 'Content-Length' 0; |
|
|
|
return 204; |
|
|
|
} |
|
|
|
if ($request_filename ~* ^.*?.(html|htm|js)$) { |
|
|
|
add_header Cache-Control no-cache; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|