Skip to content
Browse files

pass through cache-control headers on downloaded tiles

  • Loading branch information...
1 parent a275057 commit 22de9d03382c109d522faae9d5372515babb0db4 @ianshward committed Feb 8, 2012
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);

0 comments on commit 22de9d0

Please sign in to comment.
Something went wrong with that request. Please try again.