Skip to content

Commit e780e26

Browse files
committed
improved documentation of new buffering changelog
1 parent ab88756 commit e780e26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.changeset/fair-cars-fry.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ FEAT: Major improvements to prefetching with automatic bundle preloading
1919
- **Keep** your service worker code as is (either `<ServiceWorkerRegister/>` or `<PrefetchServiceWorker/>`).
2020
- **Configure** your server to provide long caching headers.
2121

22-
Service Worker:
22+
**Service Worker:**
2323

2424
This new implementation will use it to uninstall the current service worker to reduce the unnecessary duplication.
2525

2626
The builtin service workers components are deprecated but still exist for backwards compatibility.
2727

28-
Caching Headers:
28+
⚠️ **IMPORTANT: Caching Headers:**
2929

3030
The files under build/ and assets/ are named with their content hash and may therefore be cached indefinitely. Typically you should serve `build/*` and `assets/*` with `Cache-Control: public, max-age=31536000, immutable`.
3131

@@ -53,6 +53,8 @@ export default function (opts: RenderToStreamOptions) {
5353
}
5454
```
5555

56+
#### Optional for legacy apps:
57+
5658
For legacy apps that still need service worker functionality, you can add it back using:
5759

5860
```bash

0 commit comments

Comments
 (0)