Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pass through cache-control headers on downloaded tiles

  • Loading branch information...
commit 22de9d03382c109d522faae9d5372515babb0db4 1 parent a275057
@ianshward authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/tilejson.js
View
3  lib/tilejson.js
@@ -201,7 +201,8 @@ TileJSON.prototype._downloadTile = function(z, x, y, callback) {
var headers = {
'Content-Type': getMimeType(data),
'Last-Modified': modified,
- 'ETag': headers['etag'] || (headers['content-length'] + '-' + +modified)
+ 'ETag': headers['etag'] || (headers['content-length'] + '-' + +modified),
+ 'Cache-Control': headers['cache-control']
};
tilejson._putTile.run(z, x, y, data, JSON.stringify(headers), expires);
Please sign in to comment.
Something went wrong with that request. Please try again.