|
51 | 51 |
|
52 | 52 | 请注意,这些配置会持久作用,但需要 **重新启动**。 |
53 | 53 |
|
54 | | -<<<<<<< HEAD |
55 | | -### 431 Request Header Fields Too Large {#431-request-header-fields-too-large} |
56 | | -======= |
57 | | -### Network requests stop loading |
| 54 | +### 网络请求停止加载 {#network-requests-stop-loading} |
58 | 55 |
|
59 | | -When using a self-signed SSL certificate, Chrome ignores all caching directives and reloads the content. Vite relies on these caching directives. |
| 56 | +使用自签名SSL证书时,Chrome 会忽略所有缓存指令并重新加载内容。而 Vite 依赖于这些缓存指令。 |
60 | 57 |
|
61 | | -To resolve the problem use a trusted SSL cert. |
| 58 | +要解决此问题,请使用受信任的SSL证书。 |
62 | 59 |
|
63 | | -See: [Cache problems](https://helpx.adobe.com/mt/experience-manager/kb/cache-problems-on-chrome-with-SSL-certificate-errors.html), [Chrome issue](https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8) |
| 60 | +请查看:[缓存问题](https://helpx.adobe.com/mt/experience-manager/kb/cache-problems-on-chrome-with-SSL-certificate-errors.html) 和相关的 [Chrome issue](https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8) |
64 | 61 |
|
65 | 62 | #### macOS |
66 | 63 |
|
67 | | -You can install a trusted cert via the CLI with this command: |
| 64 | +您可以使用以下命令通过 CLI 安装受信任的证书: |
68 | 65 |
|
69 | 66 | ``` |
70 | 67 | security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-db your-cert.cer |
71 | 68 | ``` |
72 | 69 |
|
73 | | -Or, by importing it into the Keychain Access app and updating the trust of your cert to "Always Trust." |
| 70 | +或者,通过将其导入 Keychain Access 应用程序并将您的证书的信任更新为“始终信任”。 |
74 | 71 |
|
75 | | -### 431 Request Header Fields Too Large |
76 | | ->>>>>>> b487b176946a6940b8f77176b07b19eed975456c |
| 72 | +### 431 Request Header Fields Too Large {#431-request-header-fields-too-large} |
77 | 73 |
|
78 | 74 | 当服务器或 WebSocket 服务收到一个较大的 HTTP 头,该请求可能会被遗落并且会显示下面这样的警告。 |
79 | 75 |
|
@@ -105,15 +101,11 @@ import './Foo.js' // 应该为 './foo.js' |
105 | 101 |
|
106 | 102 | 同时如果有依赖环,也会发生完全重载。要解决这个问题,请先尝试解决依赖循环。 |
107 | 103 |
|
108 | | -<<<<<<< HEAD |
109 | | -## 构建 {#build} |
110 | | -======= |
111 | | -### High number of HMR updates in console |
| 104 | +### 控制台中大量热更新 {#high-number-of-hmr-updates-in-console} |
112 | 105 |
|
113 | 106 | This can be caused by a circular dependency. To solve this, try breaking the loop. |
114 | 107 |
|
115 | | -## Build |
116 | | ->>>>>>> b487b176946a6940b8f77176b07b19eed975456c |
| 108 | +## 构建 {#build} |
117 | 109 |
|
118 | 110 | ### 构建产物因为 CORS 错误无法工作 {#built-file-does-not-work-because-of-cors-error} |
119 | 111 |
|
|
0 commit comments