#####INCLUDE z.upperside.html
#####INCLUDE docs-nav.html

Forwarding & Recording AI-generated

A reaction's Forward to Live Service section (see Reactions) sends the matched request through to a real backend instead of returning a static payload - and, with caching turned on, that same mechanism is how MockMotor records real traffic into brand-new mock reactions automatically. There's no separate "forward when nothing else matches" mode - it's a plain reaction with Forward configured, so you get that fallback behavior for free by simply putting a broadly-matching forward reaction last in the list.

Why forward instead of mock

Forward settings

Caching

Caching is a separate Caching section of any reaction - forwarding or not. When Cache Transactions is on, each exchange the reaction handles is saved as a new, temporary "cached" reaction that returns the same response for the same Cache Keys.

The same settings are available through the REST API and MCP (cache, cacheKeys, cacheSaveToAccount, cacheMaxDelay on create/update reaction).

If the real backend requires authentication, call the mock with the same credentials you'd use against the real thing (e.g. the same Authorization header) - MockMotor forwards them through as-is, so the backend authenticates the call normally. Two-way SSL (client-certificate) authentication to the backend is not supported.

Recording as a workflow

Point a reaction at the real service with Cache Transactions enabled in its Caching section, send it representative traffic, then look at the resulting cached reactions - shown under the service's Recorded tab, and marked "To be Lost" in the reactions list since they disappear the next time the cache is cleared. Download or clone the ones worth keeping into permanent reactions before that happens. Only turn recording on when you actually want to capture traffic - it's not meant to be left on permanently.

Importing captured traffic

Traffic captured outside MockMotor - a Fiddler session, or a raw request/response pair - can also be imported directly into a new reaction, without needing a live Forward round-trip at all. Useful when you already have a real capture on hand (from a browser proxy, or a colleague) rather than a reachable live backend to record from.

#####INCLUDE z.footer.html