Skip to content

Commit 263988e

Browse files
committed
Added headers config to readme example
1 parent a55dcc1 commit 263988e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ $server = new Server([
2929
'robots.txt',
3030
'favicon.ico',
3131
],
32+
[ // Optional, array with headers to include in the cache
33+
'Content-Type',
34+
],
3235
new ArrayCache() // Optional, will default to ArrayCache but any CacheInterface cache will do: https://github.com/reactphp/react/wiki/Users#cache-implementations
3336
),
3437
/** Other middleware */

0 commit comments

Comments
 (0)