diff options
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -86,7 +86,7 @@ for await (const req of serve({ port: parseInt(SERVER_PORT), hostname: SERVER_HO } else if (req.url === "/") { const headers = new Headers(); headers.append("Cache-Control", "public,no-transform,max-age=3600"); - headers.append("Expires", new Date().toUTCString()); + headers.append("Expires", new Date(Date.now() + 3600).toUTCString()); req.respond({ body: JSON.stringify(await getRepositories()), headers: headers }); } else { req.respond({ |
