@loopback/docs
Version:
Documentation for LoopBack 4
30 lines (20 loc) • 1.11 kB
Markdown
---
lang: en
title: 'API docs: http-caching-proxy.proxyoptions'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.http-caching-proxy.proxyoptions.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/http-caching-proxy](./http-caching-proxy.md) > [ProxyOptions](./http-caching-proxy.proxyoptions.md)
## ProxyOptions interface
<b>Signature:</b>
```typescript
export interface ProxyOptions
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [cachePath](./http-caching-proxy.proxyoptions.cachepath.md) | <code>string</code> | Directory where to keep the cached snapshots. |
| [port](./http-caching-proxy.proxyoptions.port.md) | <code>number</code> | The port where the HTTP proxy should listen at. Default: 0 (let the system pick a free port) |
| [ttl](./http-caching-proxy.proxyoptions.ttl.md) | <code>number</code> | How long to keep snapshots before making a new request to the backend. The value is in milliseconds.<!-- -->Default: one day |