---
title: Efficient requests and caching
description: Reuse catalog responses while keeping data age and source freshness explicit.
---

## Read only what you need

Use list projections and targeted filters for discovery. Request terrain only for selected resorts. Disable pass detail's default mountain expansion with `includeMountains=false` when it is unnecessary. Follow pagination rather than assuming the first page contains the complete roster.

## Shared API payload cache

The current implementation uses revision-aware payload caching with nominal TTLs of 15 seconds for mountain list/detail, trail/lift lists and pass detail; pass lists use 60 seconds. Deployment can disable caching or fall back to direct reads when cache infrastructure is unavailable. `cached` indicates a hit, not a fixed freshness guarantee. Standalone trail/lift detail reads currently bypass this shared payload cache.

Verified mutations invalidate relevant revisions. Optional live enrichment can be added after a shared mountain payload is read. Do not infer that all fields in a response share the same generation time.

Standard mountain routes declare `skipCache=true`. Existing cached collection/pass readers also accept cache controls through their query, but that is not a general HTTP cache invalidation API. Avoid relying on undeclared controls. Bypassing payload cache does not trigger a source collection or refresh a resort report, and still uses request allowance.

## HTTP caching

Overview, status, feeds and optional weather set endpoint-specific Cache-Control. Honor those headers and inspect timestamps separately. Do not assume ETags or conditional requests work on all JSON catalog endpoints.

XML feeds support ETags:

```bash
curl -i 'https://icecoast.us/mountains/killington/feed.xml'
# Save the returned ETag, then send it on the next request:
curl -i -H 'If-None-Match: "PREVIOUS_ETAG"' \
  'https://icecoast.us/mountains/killington/feed.xml'
```

A matching ETag returns 304 with no document body; retain your previous representation. Use feed freshness fields to interpret retained/stale conditions. Feeds are aggregate-only; use the API for individual statuses and recorded changes.

Apply bounded exponential backoff with jitter for transient errors, coalesce duplicate requests in your application and respect Retry-After when present. Keep API keys out of shared cache keys visible to end users and out of logs. See [error handling](/docs/concepts/errors) and [usage](/docs/concepts/usage).
