Skip to content

Commit

Permalink
add cache header
Browse files Browse the repository at this point in the history
  • Loading branch information
bangnokia committed Apr 26, 2024
1 parent 26260a6 commit ce1e1fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function modifyResponseHeaders(originalHeaders) {
headers.set('Access-Control-Allow-Origin', '*')
headers.set('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS')
headers.set('Access-Control-Allow-Headers', 'Content-Type')
headers.set('Cache-Control', 'public, max-age=600000')

return headers
}

0 comments on commit ce1e1fd

Please sign in to comment.