send content-type, last-modified, etag headers w/ grids, not just tiles
This commit is contained in:
@@ -229,8 +229,12 @@ MBTiles.prototype.getGrid = function(z, x, y, callback) {
|
||||
} catch (err) {
|
||||
return callback(new Error('Grid is invalid'));
|
||||
}
|
||||
|
||||
callback(null, result);
|
||||
var options = {
|
||||
'Content-Type': 'text/javascript',
|
||||
'Last-Modified': new Date(that._stat.mtime).toUTCString(),
|
||||
'ETag': that._stat.size + '-' + Number(that._stat.mtime)
|
||||
};
|
||||
callback(null, result, options);
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user