Skip to content

Commit

Permalink
only save success payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcastrodev committed Sep 29, 2023
1 parent ae24f19 commit 0cdc581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StaticRenderRegeneration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function staticRenderRegeneration(

const response = await render(request);

if (response.status !== 419) {
if (response.status >= 200 && response.status < 300) {
cacheManager.save(response);
}

Expand Down

0 comments on commit 0cdc581

Please sign in to comment.