tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
291
fork
atom
a tool for shared writing and social publishing
291
fork
atom
overview
issues
28
pulls
pipelines
cache microlink requests
awarm.space
6 months ago
93f95017
8dad9438
+7
-1
1 changed file
expand all
collapse all
unified
split
src
utils
getMicroLinkOgImage.ts
+7
-1
src/utils/getMicroLinkOgImage.ts
···
16
16
},
17
17
},
18
18
);
19
19
+
const clonedResponse = response.clone();
20
20
+
if (clonedResponse.status == 200)
21
21
+
clonedResponse.headers.set(
22
22
+
"CDN-Cache-Control",
23
23
+
"s-maxage=600, stale-while-revalidate=3600",
24
24
+
);
19
25
20
20
-
return response;
26
26
+
return clonedResponse;
21
27
}