diff --git a/packages/preview-process/src/parts/Responses/NotModifiedResponse.ts b/packages/preview-process/src/parts/Responses/NotModifiedResponse.ts index f04506c0..64530553 100644 --- a/packages/preview-process/src/parts/Responses/NotModifiedResponse.ts +++ b/packages/preview-process/src/parts/Responses/NotModifiedResponse.ts @@ -2,12 +2,13 @@ import * as HttpHeader from '../HttpHeader/HttpHeader.ts' import * as HttpStatusCode from '../HttpStatusCode/HttpStatusCode.ts' export class NotModifiedResponse extends Response { - constructor(etag: string) { + constructor(etag: string, extraHeaders: Record = {}) { super(null, { status: HttpStatusCode.NotModified, headers: { [HttpHeader.CrossOriginResourcePolicy]: 'same-origin', [HttpHeader.Etag]: etag, + ...extraHeaders, }, }) }