---
lang: en
title: 'API docs: http-caching-proxy.proxyoptions'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/http-caching-proxy
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) &gt; [@loopback/http-caching-proxy](./http-caching-proxy.md) &gt; [ProxyOptions](./http-caching-proxy.proxyoptions.md)

## ProxyOptions interface

**Signature:**

```typescript
export interface ProxyOptions 
```

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [cachePath](./http-caching-proxy.proxyoptions.cachepath.md) |  | string | Directory where to keep the cached snapshots. |
|  [logError?](./http-caching-proxy.proxyoptions.logerror.md) |  | boolean | _(Optional)_ A flag if the error should be logged |
|  [port?](./http-caching-proxy.proxyoptions.port.md) |  | number | _(Optional)_ The port where the HTTP proxy should listen at. Default: 0 (let the system pick a free port) |
|  [timeout?](./http-caching-proxy.proxyoptions.timeout.md) |  | number | _(Optional)_ Timeout to connect to the target service |
|  [ttl?](./http-caching-proxy.proxyoptions.ttl.md) |  | number | <p>_(Optional)_ How long to keep snapshots before making a new request to the backend. The value is in milliseconds.</p><p>Default: one day</p> |


