0

If -c or --cachelife option is <= 0, the ?c= parameter won't be appended to tile urls so that caching can be controlled server-side (or left to the whim of the browser)

This commit is contained in:
Gregory Short
2010-09-09 02:41:11 -05:00
parent b6ceb536da
commit f442c984c1
2 changed files with 5 additions and 3 deletions

View File

@@ -35,8 +35,10 @@
}
}
url = url + '.' + config.fileExt;
var d = new Date();
url += '?c=' + Math.floor(d.getTime() / (1000 * 60 * config.cacheMinutes));
if(config.cacheMinutes > 0) {
var d = new Date();
url += '?c=' + Math.floor(d.getTime() / (1000 * 60 * config.cacheMinutes));
}
return(url);
},
tileSize: new google.maps.Size(config.tileSize, config.tileSize),