|
|
8d6f4616b9
|
perf(nginx): 修复 JS 未压缩,静态资源加不可变缓存
nginx 1.21.1 起 mime.types 把 .js 标成 text/javascript,而 gzip_types
只写了 application/javascript,导致前端 JS 实际一直在裸传。补全类型列表,
并加上 application/json 让 API 响应也走压缩。
gzip_comp_level 此前用的是默认值 1,改为 6,实测 js+css 总量 3.85M → 3.44M。
/assets/ 下的产物文件名带内容 hash,加 immutable 永久缓存,省掉每次进页面
对 32 个 chunk 的条件请求;index.html 反过来设 no-cache,避免发版后刷不到新版。
location 里出现 add_header 会中断 http 级 add_header 的继承,
两个 block 都重新声明了原有的三个安全头。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
2026-08-05 09:11:48 -06:00 |
|
|
|
dab6734d03
|
switch docker image
|
2026-06-14 09:13:05 -06:00 |
|
|
|
8731012f47
|
use asgi
|
2026-05-26 07:37:05 -06:00 |
|
|
|
22d4a9057b
|
add ws
|
2025-10-07 17:03:14 +08:00 |
|
yuetsh
|
d2dc058af5
|
remove heartbeat log
|
2024-06-04 22:25:31 +08:00 |
|
|
|
2ca96ca228
|
update python deps
|
2024-06-04 22:08:31 +08:00 |
|
李扬
|
829591ac05
|
Update nginx.conf
|
2018-11-05 08:15:53 +08:00 |
|
virusdefender
|
9542b2e5f7
|
use env to force https
|
2017-12-16 01:39:50 +08:00 |
|
zema1
|
b5c0550652
|
use 'nginx' as nginx running user
|
2017-12-03 20:34:07 +08:00 |
|
virusdefender
|
1bf4973648
|
fix deploy issues
- make supervisorctl happy
- fix avatar path
- refine logging config
- add nginx buffer path
|
2017-11-26 10:43:14 +08:00 |
|
virusdefender
|
cf40deb97c
|
add ssl cert
|
2017-11-25 12:56:09 +08:00 |
|