Skip to content

Commit

Permalink
Remove newTimestamp from /new endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Oct 14, 2024
1 parent 3434ebb commit c81d955
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/http.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -612,12 +612,6 @@ export async function launch(trie, libp2p) {
app.get("/new", async (request, reply) => {
const content = await newest(trie, reply.locals.theme);
let timestamp;
try {
timestamp = newAPI.getLatestTimestamp();
reply.cookie("newTimestamp", timestamp, { maxAge: 1000 * 60 * 60 * 32 });
} catch (err) {
//noop
}

// NOTE: Especially for international customers /new got embarassingly slow
// taking up to 2s to load as the page had to served previously from
Expand Down

0 comments on commit c81d955

Please sign in to comment.