remove cache control headers - fixes #17

This commit is contained in:
Rich Harris
2018-01-01 19:47:29 -05:00
parent 39715350df
commit cb59bc85bf
2 changed files with 2 additions and 4 deletions

View File

@@ -12,8 +12,7 @@ export function get(req, res, next) {
if (lookup.has(slug)) {
res.set({
'Content-Type': 'application/json',
'Cache-Control': `max-age=${30 * 60 * 1e3}` // cache for 30 minutes
'Content-Type': 'application/json'
});
res.end(lookup.get(slug));

View File

@@ -9,8 +9,7 @@ const contents = JSON.stringify(posts.map(post => {
export function get(req, res) {
res.set({
'Content-Type': 'application/json',
'Cache-Control': `max-age=${30 * 60 * 1e3}` // cache for 30 minutes
'Content-Type': 'application/json'
});
res.end(contents);