Skip to content

Commit 47f84ef

Browse files
fix(functions): enable cache
1 parent 49049da commit 47f84ef

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

functions/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ exports.test = functions.https.onRequest((req, res) => {
2626
const path = '/GrabarzUndPartner/gp-vue-boilerplate/master/src/components/molecules/LinkList.vue';
2727
getCodeAsSVG(path, req.query.range, req.query.lang).then((svg) => {
2828
res.setHeader('Content-Type', 'image/svg+xml');
29-
res.setHeader('Cache-Control', 'no-cache');
3029
res.send(Buffer.from(svg));
3130
});
3231
});
@@ -35,7 +34,6 @@ app.get(['/:foo/:bar/*'], (req, res) => {
3534
const path = req.path.replace(/([\w-]*\/[\w-]*)(\/blob)/, '$1');
3635
getCodeAsSVG(path, req.query.range, req.query.lang).then((svg) => {
3736
res.setHeader('Content-Type', 'image/svg+xml');
38-
res.setHeader('Cache-Control', 'no-cache');
3937
res.send(Buffer.from(svg));
4038
});
4139
});

0 commit comments

Comments
 (0)