Skip to content

Commit beefef0

Browse files
committed
removed useless comment, uncommented code
1 parent c062c83 commit beefef0

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

apps/api/src/index.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@ app.use(
1616
}),
1717
);
1818

19-
// const getR2ObjectETag = async (key: string): Promise<string> => {
20-
// const response = await fetch(`${c.env.R2_PUBLIC_ARPENTRY_ENDPOINT}/${key}`, {
21-
// method: 'HEAD', // Only get headers, not content
22-
// });
23-
24-
// return response.headers.get('ETag') || '';
25-
// };
26-
27-
// const invalidateCache = async (c: Context) => {
28-
// await c.env.KV_ARPENTRY.delete('global_bounds');
29-
// await c.env.KV_ARPENTRY.delete('tileset_center');
30-
// };
31-
3219
// Mount TMS routes
3320
app.route('/tms', tms);
3421
app.route('/', glb);

apps/api/src/routes/glb.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ let TILESET_CENTER: Coordinate | null = null;
3939
*/
4040
glb.get(
4141
'/tileset.json',
42-
// cache({
43-
// cacheName: 'tileset',
44-
// cacheControl: 'max-age=3600',
45-
// }),
42+
cache({
43+
cacheName: 'tileset',
44+
cacheControl: 'max-age=3600',
45+
}),
4646
async (c) => {
4747
console.log('🌍 Tileset JSON endpoint');
4848
try {

0 commit comments

Comments
 (0)