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 7059802 commit ca3495d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/newsfeed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +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.set("Content-Type", "application/xml");

res.send(response.data);
Expand Down

0 comments on commit ca3495d

Please sign in to comment.