Skip to content

Commit

Permalink
feat: cache uniresolver response (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 authored Aug 29, 2023
1 parent 17ff758 commit 9d987f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-walls-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blockchain-lab-um/dapp': patch
---

Cache uniresolver response
2 changes: 2 additions & 0 deletions packages/dapp/src/app/api/proxy/uniresolver/[did]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export async function GET(
status: 200,
headers: {
...CORS_HEADERS,
// Add a cache header to avoid hitting the uniresolver too often
'Cache-Control': 's-maxage=43200',
},
});
}
Expand Down

0 comments on commit 9d987f2

Please sign in to comment.