MIME type fixups for CDN compression

This commit is contained in:
Brandon Liu
2022-11-11 20:21:22 +08:00
parent 02fa1a5a67
commit 79c87fb04a
2 changed files with 10 additions and 8 deletions

View File

@@ -186,7 +186,7 @@ export default {
case TileType.Mvt:
cacheable_headers.set(
"Content-Type",
"application/vnd.vector-tile"
"application/x-protobuf"
);
break;
case TileType.Png:
@@ -214,7 +214,7 @@ export default {
}
}
// TODO: metadata responses
// TODO: metadata responses, tileJSON
return new Response("Invalid URL", { status: 404 });
},
};