Skip to content

Commit

Permalink
use CDN-Cache-Control
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsangan committed Aug 5, 2024
1 parent 68313f8 commit b344c4a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ jobs:
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: deploy src/main.js
3 changes: 0 additions & 3 deletions package.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function serveResult(request) {
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Method': 'GET, HEAD',
'Cloudflare-CDN-Cache-Control': 'max-age=30',
'CDN-Cache-Control': 'max-age=30',
'Content-Type': 'application/json; charset=utf-8',
}
})
Expand Down
1 change: 1 addition & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name = "validev"
main = "./src/main.js"
workers_dev = true
compatibility_date = "2022-01-01"
[placement]
Expand Down

0 comments on commit b344c4a

Please sign in to comment.