Skip to content

Commit

Permalink
feat: add cache-control for netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
kresnasatya committed Dec 27, 2024
1 parent abe284a commit f8029a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/netlify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const headers = {
'Access-Control-Allow-Headers': 'Content-Type',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE',
'Content-Type': 'application/json',
'Cache-Control': 'public, max-age=0, s-maxage=86400'
};

export const handler = async (event, context) => {
Expand Down

0 comments on commit f8029a9

Please sign in to comment.