diff --git a/src/run/headers.ts b/src/run/headers.ts index 411edf0052..9af7f26832 100644 --- a/src/run/headers.ts +++ b/src/run/headers.ts @@ -54,7 +54,10 @@ const generateNetlifyVaryValues = ({ } const getHeaderValueArray = (header: string): string[] => { - return header.split(',').map((value) => value.trim()) + return header + .split(',') + .map((value) => value.trim()) + .filter(Boolean) } const omitHeaderValues = (header: string, values: string[]): string => {