reinstate 304

This commit is contained in:
Simon Tokumine
2011-12-06 17:13:56 +00:00
parent 6d05c83631
commit 473a2d55a5
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ var CartodbWindshaft = function(serverOptions) {
// set the cache chanel info to invalidate the cache on the frontend server
serverOptions.afterTileRender = function(req, res, tile, headers, callback) {
res.header('X-Cache-Channel', req.params.dbname);
// note - not invalidating properly
// res.header('Last-Modified','Wed, 30 Aug 1978 00:00:00 GMT'); // special date in the past.
// res.header('Cache-Control','no-cache,must-revalidate, public');
// note - may not be invalidating properly
res.header('Last-Modified', new Date().toUTCString());
res.header('Cache-Control', 'no-cache,must-revalidate, public');
callback(null, tile, headers);
};
+1 -1
View File
@@ -20,7 +20,7 @@ function VarnishClient(host, port, ready_callback) {
connect();
client.on('data', function(data) {
client.on('data', function (data) {
data = data.toString();
lines = data.split('\n', 2);
if(lines.length == 2) {