---
title: Override TTLs based on content type
summary: Set TTLs at the edge based on the type of resource. Better done at origin, but this can be a great 'quick fix' or a solution if you don't control the origin.
url: https://www.fastly.com/documentation/solutions/examples/overriding-ttls-based-on-content-type
---

Set TTLs at the edge based on the type of resource. Better done at origin, but this can be a great 'quick fix' or a solution if you don't control the origin.

## VCL

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

