Skip to main content
Trademark data changes infrequently for most records. By leveraging ETags and conditional requests, you can avoid re-downloading unchanged data and speed up your application.

How ETags Work

When you fetch a resource, the response includes an ETag header containing a content fingerprint:
On subsequent requests, send the ETag back via If-None-Match. If the resource has not changed, you get a 304 Not Modified with no body, saving bandwidth and processing time:
Rate limiting is enforced before the route runs, based on the endpoint’s type and transport tier, not on the response status it eventually returns. A 304 Not Modified counts against your rate limit exactly the same as the 200 it would have returned. ETags save you bandwidth and latency, not rate-limit budget, so they are still worth using on hot reads, just don’t rely on them to raise your effective request ceiling.

Endpoints That Support ETags

Reference data endpoints (offices, jurisdictions, classifications) change very rarely. Cache these aggressively with a long TTL.

Cache-Control Headers

Every cacheable response includes a Cache-Control header:
All Signa responses include private because they are scoped to your organization. Never cache API responses in a shared/public cache.

Conditional Request Flow

TypeScript

Caching Strategies for Trademark Data

Different types of trademark data have different change frequencies. Tailor your caching strategy accordingly.

Reference Data (offices, jurisdictions, classifications)

These change only when Signa adds a new office or jurisdiction.
  • Strategy: Cache locally with a 24-hour TTL. Revalidate with ETags daily.
  • Storage: In-memory or local file.

Individual Trademarks

Most trademark records change infrequently (a few times per year), but some change during active prosecution.
  • Strategy: Cache with the max-age value from the response (typically 5 min). Revalidate with ETags after expiry.
  • Storage: In-memory cache (Redis, local Map) keyed by trademark ID.

Search Results

Search results are dynamic and depend on query parameters, so they are not ETag-cacheable.
  • Strategy: Client-side TTL cache keyed by the full query hash. A 30-60 second TTL works well for typeahead and repeated searches.
  • Storage: In-memory only. Do not persist search result caches.

List Endpoints

Paginated lists may change as new records are added.
  • Strategy: Short TTL (60 s from max-age). Revalidate with ETags. Note that the cursor itself provides consistency within a pagination session.
  • Storage: In-memory, keyed by the full URL including query parameters.

Cache Invalidation

Analytics freshness

Analytics reports use a 24-hour cache TTL as a backstop. Owner, attorney, firm, and entity updates invalidate affected reports through the search-indexer, so freshness is event-driven rather than sweep-based. Inspect Server-Timing: cache;dur=0;desc="hit" (or desc="miss") to see whether a report was served from cache; this signal is not included in the response body. ETags handle revalidation automatically: a conditional GET against the same resource returns 304 Not Modified when the record is unchanged, so your cache entry stays valid. As noted above, that request still counts against your rate limit like any other call to the endpoint, so revalidating on every read is a latency and bandwidth optimization, not a way to make more requests than your plan allows. For records you display in hot UI surfaces, complement ETag revalidation with a background poll of the Trademark Changes endpoint, it returns the versioned change log for a specific mark, letting you invalidate a cache entry the moment a new version is detected without waiting for the next ETag check.
Pair ETags for normal traffic with a low-frequency poll of trademark-changes for your hottest marks. You get efficient revalidation on every read plus proactive busting on the small set of records that actually churn.

Multi-Tier Caching

For applications that display trademark data to end users, consider a two-tier approach: