0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

[ci] format

This commit is contained in:
matthewp 2023-03-08 22:34:39 +00:00 committed by fredkbot
parent ec04553525
commit 5deacfb6c3
2 changed files with 5 additions and 2 deletions

View file

@ -109,7 +109,10 @@ export default function assets({
format = result.format;
}
res.setHeader('Content-Type', mime.getType(fileURLToPath(filePathURL)) || `image/${format}`);
res.setHeader(
'Content-Type',
mime.getType(fileURLToPath(filePathURL)) || `image/${format}`
);
res.setHeader('Cache-Control', 'max-age=360000');
const stream = Readable.from(data);