Set cache lifetime for a service version
One step with Fastly. We can help you get access.
Get something done
Set cache lifetime for a service version
with Fastly
Use Fastly: its Fastly VCL Services Cache Settings API lets you set cache lifetime for a service version in a single step (POST /service/{service_id}/version/{version_id}/cache_settings). capabilities.work can help you get signed up and connected.
- How do I cache objects for a fixed number of seconds on my service?
- Can I set a stale TTL so old content is served while fresh content reloads?
Say it to your AI assistant
- Create cache settings named {name} on service {service_id} version {version_id} with TTL {ttl}.
- Add cache settings {name} to service {service_id} version {version_id} serving stale content up to {stale_ttl} seconds.
For your developer
POST /service/{service_id}/version/{version_id}/cache_settings in Fastly VCL Services Cache Settings API. Full spec on APIs.io.