Skip to content

Commit f54e755

Browse files
authored
Merge pull request #20 from jiangfengming/patch-1
Fix a mistake in README
2 parents 55f3036 + 055fcfb commit f54e755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if (!oldPolicy.satisfiesWithoutRevalidation(newRequest)) {
145145
newRequest.headers = oldPolicy.revalidationHeaders(newRequest);
146146

147147
// Send request to the origin server. The server may respond with status 304
148-
const newResponse = await makeRequest(newResponse);
148+
const newResponse = await makeRequest(newRequest);
149149

150150
// Create updated policy and combined response from the old and new data
151151
const { policy, modified } = oldPolicy.revalidatedPolicy(

0 commit comments

Comments
 (0)