Add cache-buster to hit database always

This commit is contained in:
Daniel García Aubert 2018-11-02 10:21:53 +01:00
parent 3bb1f893af
commit e03defc30f

View File

@ -24,11 +24,23 @@ const validationPointSleepSql = `
2 val
`;
const cartoCSSPoints = () => `
// cache buster: ${Date.now()}
#layer{
marker-placement: point;
marker-allow-overlap: true;
marker-line-opacity: 0.2;
marker-line-width: 0.5;
marker-opacity: 1;
marker-width: 5;
marker-fill: red;
}`;
const createMapConfig = ({
version = '1.6.0',
type = 'cartodb',
sql = pointSleepSql,
cartocss = TestClient.CARTOCSS.POINTS,
cartocss = cartoCSSPoints(),
cartocss_version = '2.3.0',
interactivity = 'cartodb_id',
countBy = 'cartodb_id',