mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-23 06:51:27 +00:00
remove cache control headers - fixes #17
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user