nftstorage.link icon indicating copy to clipboard operation
nftstorage.link copied to clipboard

Gateway Worker warm cache API route

Open vasco-santos opened this issue 3 years ago • 0 comments

CF Worker Gateway needs to support a /cache/:cid route that Gateway warm cache aws lambda function will use to ask the CF Worker to cache a response in the context of nftstorage/nftstorage.link#19

Flow

Receives a request to look for a CID and cache it

  • Asks S3 Gateway for CID content
  • Put response in CF cache

Notes

  • Protected route with JWT! Only our internal services should be able to do this!
  • We can use S3 exporter as a gateway in the race

vasco-santos avatar Mar 03 '22 09:03 vasco-santos