---
title: Overriding caching defaults based on a backend response
summary: Conditionally apply a 5 minute caching limit based on a 404 backend response.
url: https://www.fastly.com/documentation/solutions/examples/overriding-caching-defaults-based-on-a-backend-response
---

Conditionally apply a 5 minute caching limit based on a 404 backend response.

## VCL

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

