Skip to content

Commit

Permalink
feat: update nginx.conf 使用固定编译入口可能导致浏览器使用缓存js文件,而此配置可以解决 (#3045)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoin committed Sep 20, 2023
1 parent e477875 commit 556575f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ http {
add_header 'Content-Length' 0;
return 204;
}
if ($request_filename ~* ^.*?.(html|htm|js)$) {
add_header Cache-Control no-cache;
}
}
}
}

0 comments on commit 556575f

Please sign in to comment.