diff --git a/packages/strapi-plugin-rest-cache/server/utils/keys/generateCacheKey.js b/packages/strapi-plugin-rest-cache/server/utils/keys/generateCacheKey.js index dcaba29a6..02e0ffff5 100644 --- a/packages/strapi-plugin-rest-cache/server/utils/keys/generateCacheKey.js +++ b/packages/strapi-plugin-rest-cache/server/utils/keys/generateCacheKey.js @@ -23,7 +23,7 @@ function generateCacheKey( headersSuffix = generateHeadersKey(ctx, keys.useHeaders); } - const requestPath = toLower(path.normalize(ctx.request.path)).replace( + const requestPath = toLower(path.posix.normalize(ctx.request.path)).replace( /\/$/, '' );