File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed
Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff 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
3320app . route ( '/tms' , tms ) ;
3421app . route ( '/' , glb ) ;
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ let TILESET_CENTER: Coordinate | null = null;
3939 */
4040glb . 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 {
You can’t perform that action at this time.
0 commit comments