Skip to content

Commit 39ee644

Browse files
authored
explain forwarded headers in more detail
1 parent a87938a commit 39ee644

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,21 @@ buildProxyImagePath('test-bucket/test-image.png', {
175175
endpoint: '/my-endpoint',
176176
});
177177
```
178+
179+
## Forwarded Headers
180+
181+
By default, the following imgproxy headers will be forwarded in the response to the client:
182+
183+
```json
184+
[
185+
"date",
186+
"expires",
187+
"content-type",
188+
"content-length",
189+
"cache-control",
190+
"content-disposition",
191+
"content-dpr"
192+
]
193+
```
194+
195+
If you want to forward a different set of headers you can use the `forwardedHeaders` option to specify a custom list of headers. Note that if `forwardedHeaders` is specified, all headers not specified in the list will be omitted in the response.

0 commit comments

Comments
 (0)