---
title: "Deploy Caching CORS Proxy"
description: "A simple CORS proxy with optional dynamic caching capabilities"
category: "Other"
url: https://railway.com/deploy/VFbUtB
---

# Deploy Caching CORS Proxy

A simple CORS proxy with optional dynamic caching capabilities

**[Deploy Caching CORS Proxy on Railway](https://railway.com/template/VFbUtB)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/VFbUtB/manifest.json

- **Creator:** Rahul Rao
- **Category:** Other
- **Total deploys:** 15

## Template content

### Proxy

- **Source:** https://github.com/campaigncode/proxy
- **Public domain:** Yes

### Redis https://devicons.railway.app/i/redis.svg

- **Image:** bitnami/redis

## Documentation

## Caching CORS Proxy

A simple CORS proxy with optional dynamic caching. To use the cache, use the `/cache/{time}` endpoint. Time must represent a valid duration. Ex:

-   `1 minute`
-   `2 hours`

Allowed durations are:

-   ms
-   second(s)
-   minute(s)
-   hour(s)
-   day(s)
-   week(s)
-   month(s)

To avoid using the cache, simply use `/{YOUR URL}`. To bypass cache on a specific request, set `"x-apicache-bypass": true` in the request header.

ALL requests will be routed through the CORS server, regardless of whether they are cached or not.

To enable detailed logs of requests in the console, set the `EHNANCED_LOGS` environment variable to `true`.

### Examples

-   `https://CACHE PROXY URL/cache/10 minutes/https://URL TO BE CACHED/` will be cached for 10 minutes.
-   `https://CACHE PROXY URL/cache/1 hour/https://URL TO BE CACHED/` will be cached for 1 hour.
-   `https://CACHE PROXY URL/https://URL TO BE CACHED/` will not be cached.

For bug reports or feature requests, please open an issue on [our github page](https://github.com/campaigncode/proxy).

_Notice:_ The logo for this template is provided by [VectorPortal](https://vectorportal.com).

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/VFbUtB
