|
92 | 92 | "Startup preloading with path-safety cache pre-warming", |
93 | 93 | "TTL-aware cache expiry with optional automatic stale-entry eviction", |
94 | 94 | "Direct ctx.SetBody() fast path with pre-formatted headers for cache hits", |
95 | | - "HTTP/2 with automatic HTTPS", |
| 95 | + "HTTP/2 with TLS 1.2+ and HTTP→HTTPS redirect", |
96 | 96 | "TLS 1.2+ with AEAD cipher suites", |
97 | 97 | "gzip and brotli compression", |
98 | 98 | "6-step path traversal prevention", |
@@ -235,7 +235,7 @@ <h1 class="hero-title">static-web</h1> |
235 | 235 | <div class="stat-divider" aria-hidden="true"></div> |
236 | 236 | <div class="stat"> |
237 | 237 | <span class="stat-value">HTTP/2</span> |
238 | | - <span class="stat-label">+ auto HTTPS</span> |
| 238 | + <span class="stat-label">+ TLS + redirect</span> |
239 | 239 | </div> |
240 | 240 | <div class="stat-divider" aria-hidden="true"></div> |
241 | 241 | <div class="stat"> |
@@ -479,7 +479,7 @@ <h2 class="section-title" id="getting-started-heading">Getting Started</h2> |
479 | 479 | <span class="toml-key">static_max_age</span> = <span class="number">3600</span> <span class="comment"># 1 hour for static assets</span> |
480 | 480 | <span class="toml-key">html_max_age</span> = <span class="number">0</span> <span class="comment"># no-cache for HTML</span> |
481 | 481 | <span class="toml-key">enable_etags</span> = <span class="boolean">false</span> <span class="comment"># disable for max throughput</span> |
482 | | -<span class="toml-key">immutable_pattern</span> = <span class="string">"*.js"</span> <span class="comment"># mark .js as immutable</span> |
| 482 | +<span class="toml-key">immutable_pattern</span> = <span class="string">"*.chunk.js"</span> <span class="comment"># fingerprinted assets only</span> |
483 | 483 |
|
484 | 484 | <span class="toml-section">[security]</span> |
485 | 485 | <span class="toml-key">block_dotfiles</span> = <span class="boolean">true</span> |
@@ -779,6 +779,11 @@ <h2 class="section-title" id="configuration-heading">Configuration Reference</h2 |
779 | 779 | <td>—</td> |
780 | 780 | <td>Path to TLS private key (PEM)</td> |
781 | 781 | </tr> |
| 782 | + <tr> |
| 783 | + <td><code>redirect_host</code></td> |
| 784 | + <td>—</td> |
| 785 | + <td>Canonical host for HTTP→HTTPS redirect</td> |
| 786 | + </tr> |
782 | 787 | <tr> |
783 | 788 | <td><code>read_timeout</code></td> |
784 | 789 | <td><code>10s</code></td> |
@@ -946,6 +951,11 @@ <h2 class="section-title" id="configuration-heading">Configuration Reference</h2 |
946 | 951 | </tr> |
947 | 952 | </thead> |
948 | 953 | <tbody> |
| 954 | + <tr> |
| 955 | + <td><code>enable_etags</code></td> |
| 956 | + <td><code>true</code></td> |
| 957 | + <td>Enable ETag generation and If-None-Match validation</td> |
| 958 | + </tr> |
949 | 959 | <tr> |
950 | 960 | <td><code>immutable_pattern</code></td> |
951 | 961 | <td>—</td> |
|
0 commit comments