https://github.com/dylanblokhuis/cf-workers-graphql-cdn
https://github.com/dylanblokhuis/cf-workers-graphql-cdn
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dylanblokhuis/cf-workers-graphql-cdn
- Owner: dylanblokhuis
- License: mit
- Created: 2022-06-27T21:29:34.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T21:45:47.000Z (almost 3 years ago)
- Last Synced: 2025-01-11T17:53:32.376Z (4 months ago)
- Language: TypeScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cf-workers-graphql-cdn
Proxies and caches your GraphQL responses on the Cloudflare Network with a stale-while-revalidate strategy.
Implementation by: https://gist.github.com/wilsonpage/a4568d776ee6de188999afe6e2d2ee69
## How to use?
1. Point your GraphQL client to your worker URL.
2. Send a `x-gql-host` header with the origin url e.g. `https://example.org/graphql`## Development
``npx wrangler dev``## Publish
``npx wrangler publish src/index.ts --name [your project]``