Skip to content

Commit af3d422

Browse files
authored
Update cache-api.mdx (#27089)
closes #26076
1 parent b8a4af8 commit af3d422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/workers/examples/cache-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default {
4747
// Must use Response constructor to inherit all of response's fields
4848
response = new Response(response.body, response);
4949

50-
// Cache API respects Cache-Control headers. Setting s-max-age to 10
50+
// Cache API respects Cache-Control headers. Setting s-maxage to 10
5151
// will limit the response to be in cache for 10 seconds max
5252

5353
// Any changes made to the response here will be reflected in the cached value
@@ -88,7 +88,7 @@ export default {
8888
// Must use Response constructor to inherit all of response's fields
8989
response = new Response(response.body, response);
9090

91-
// Cache API respects Cache-Control headers. Setting s-max-age to 10
91+
// Cache API respects Cache-Control headers. Setting s-maxage to 10
9292
// will limit the response to be in cache for 10 seconds max
9393

9494
// Any changes made to the response here will be reflected in the cached value

0 commit comments

Comments
 (0)