[#1234] Add header to clear cache for present view

This commit is contained in:
Cassie Tarakajian 2020-06-29 18:22:55 -04:00
parent e7a05069a2
commit dc01823602

View file

@ -34,6 +34,7 @@ export function serveProject(req, res) {
resolveScripts(sketchDoc, files); resolveScripts(sketchDoc, files);
resolveStyles(sketchDoc, files); resolveStyles(sketchDoc, files);
res.setHeader('Cache-Control', 'public, max-age=0');
res.send(serializeDocument(sketchDoc)); res.send(serializeDocument(sketchDoc));
}); });
}); });