Skip to content

Commit

Permalink
always use posix and not switch depending on operating system
Browse files Browse the repository at this point in the history
  • Loading branch information
Boegie19 committed Mar 12, 2024
1 parent 2223505 commit f2c7c36
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ function generateCacheKey(
headersSuffix = generateHeadersKey(ctx, keys.useHeaders);
}

const requestPath = toLower(ctx.request.path);
const requestPath = toLower(path.posix.normalize(ctx.request.path)).replace(
/\/$/,
''
);

return `${requestPath}?${querySuffix}&${headersSuffix}`;
}
Expand Down

0 comments on commit f2c7c36

Please sign in to comment.