---
title: POST to GET rewrite using a Base64-encoded querystring
summary: To allow caching of POST requests, consider rewriting them as GET requests at the edge.
url: https://www.fastly.com/documentation/solutions/examples/post-to-get-rewrite-using-a-base64-encoded-querystring
---

To allow caching of POST requests, consider rewriting them as GET requests at the edge.

## VCL

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

## Compute

### Rust

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

### Javascript

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

### Go

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

