Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle authored Sep 21, 2023
1 parent ca3495d commit 58346c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/newsfeed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ app.get("/rss", async (req, res) => {
throw new Error("Failed to fetch the Medium RSS feed");
}

res.setHeader("Cache-Control", "s-maxage=86400");
res.setHeader('Cache-Control', 's-max-age=86400, stale-while-revalidate');
res.set("Content-Type", "application/xml");

res.send(response.data);
Expand Down

0 comments on commit 58346c4

Please sign in to comment.