File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export async function processEtagHeader(
168
168
) : Promise < Response > {
169
169
const etag = await etagPromise ;
170
170
if ( etag ) {
171
- response . headers . append ( 'ETag' , etag ) ;
171
+ response . headers . set ( 'ETag' , etag ) ;
172
172
}
173
173
return response ;
174
174
}
@@ -181,13 +181,13 @@ export function processHeaders(
181
181
const now = new Date ( ) ;
182
182
const expires = new Date ( now . getTime ( ) + cacheTTL ) ;
183
183
184
- response . headers . append ( 'Content-Type' , 'image/svg+xml' ) ;
185
- response . headers . append ( 'Cache-Control' , `public, max-age=${ maxage } ` ) ;
186
- response . headers . append ( 'Last-Modified' , now . toUTCString ( ) ) ;
187
- response . headers . append ( 'Expires' , expires . toUTCString ( ) ) ;
184
+ response . headers . set ( 'Content-Type' , 'image/svg+xml' ) ;
185
+ response . headers . set ( 'Cache-Control' , `public, max-age=${ maxage } ` ) ;
186
+ response . headers . set ( 'Last-Modified' , now . toUTCString ( ) ) ;
187
+ response . headers . set ( 'Expires' , expires . toUTCString ( ) ) ;
188
188
189
189
if ( cors ) {
190
- response . headers . append ( 'Access-Control-Allow-Origin' , '*' ) ;
190
+ response . headers . set ( 'Access-Control-Allow-Origin' , '*' ) ;
191
191
}
192
192
193
193
return response ;
You can’t perform that action at this time.
0 commit comments