Skip to content

Commit 17b7971

Browse files
committed
removing special characters
1 parent 8b4d8ee commit 17b7971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ When using the Cache-Control header, you can omit the custom `x-cache-timeout` h
8383

8484
#### Direct usage:
8585
```js
86-
res.setHeader('cache-control', `private, no-cache, max-age=${60 * 5}`)
86+
res.setHeader('cache-control', 'private, no-cache, max-age=300')
8787
res.setHeader('etag', '1')
8888

8989
res.end('5 minutes cacheable content here....')
@@ -96,7 +96,7 @@ res.setHeader('x-cache-timeout', '5 minutes')
9696
```
9797
The middleware will now transparently generate default `Cache-Control` and `ETag` headers as described below:
9898
```js
99-
res.setHeader('cache-control', `private, no-cache, max-age=300`)
99+
res.setHeader('cache-control', 'private, no-cache, max-age=300')
100100
res.setHeader('etag', '1')
101101
```
102102
This will enable browser clients to keep a copy of the cache on their side, but still being forced to validate

0 commit comments

Comments
 (0)