---
title: Cache POST/GraphQL query responses
summary: GraphQL query requests are POSTs, but responses to POST typically can't be cached. Convert it to a querystring on a GET request to allow Fastly to cache GraphQL (or any HTTP POST) request.
url: https://www.fastly.com/documentation/solutions/examples/cache-graphql-query-response
---

GraphQL query requests are POSTs, but responses to POST typically can't be cached. Convert it to a querystring on a GET request to allow Fastly to cache GraphQL (or any HTTP POST) request.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/aac38a79)

## Compute

### Rust

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/0620802d)

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/94abc13a)

### Go

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/dddeeb0c)

