cachedResponseExample
HTTP (deprecated)
v16
Preview
1
2
3
4
5
6
7
8
9
export
const
cachedResponseExample
=
(
)
=>
{
const
date
=
new
Date
(
)
.
toISOString
(
)
;
return
new
Response
(
"This is the cached response"
,
{
headers
:
{
"Cache-Control"
:
"public, max-age=3600"
,
}
,
}
)
;
}
;
Preview