forward Cache-Control response header too!
This commit is contained in:
parent
86a7bd21eb
commit
2db0e33f28
1 changed files with 1 additions and 3 deletions
|
@ -33,8 +33,6 @@ export default async (req, res) => {
|
||||||
);
|
);
|
||||||
|
|
||||||
res.status(proxyRes.status);
|
res.status(proxyRes.status);
|
||||||
if (proxyRes.ok) {
|
res.setHeader("Cache-Control", proxyRes.headers.get("Cache-Control"));
|
||||||
res.setHeader("Cache-Control", "public, max-age=86400"); // 1 day
|
|
||||||
}
|
|
||||||
streamPipeline(proxyRes.body, res);
|
streamPipeline(proxyRes.body, res);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue