From 8a1c7f5b52046470c4067e5777af407f89fced96 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 22 Feb 2017 18:38:25 +0100 Subject: [PATCH] Close timer for response preparation Timer for affectedTables is taking everything from response timing, adding a tag to represent all the response preparation. That way affectedTables only represents the time for retrieving the affected tables themselves. --- lib/cartodb/controllers/layergroup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cartodb/controllers/layergroup.js b/lib/cartodb/controllers/layergroup.js index b4cc67cc..f7215943 100644 --- a/lib/cartodb/controllers/layergroup.js +++ b/lib/cartodb/controllers/layergroup.js @@ -338,6 +338,8 @@ LayergroupController.prototype.staticMap = function(req, res, width, height, zoo LayergroupController.prototype.sendResponse = function(req, res, body, status, headers) { var self = this; + req.profiler.done('res'); + res.set('Cache-Control', 'public,max-age=31536000'); // Set Last-Modified header