Skip to content

Commit

Permalink
docs/templates/overview: cover some edge-cases in the explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuyu committed Dec 30, 2021
1 parent c99518e commit 29da042
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/content/documentation/templates/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,21 @@ environment variable to the access token you have obtained.
{{postdata|safe}}
```

In case you need to specify multiple headers with the same name, you can specify them like this:

```
headers=["accept=application/json,text/html"]
```

Which is equivalent to two `Accept` headers with `application/json` and `text/html`.

In rare cases where the target resource backend is not implemented correctly, you can instead specify
the headers multiple times to achieve the same effect:

```
headers=["accept=application/json", "accept=text/html"]
```

#### Data caching

Data file loading and remote requests are cached in memory during the build, so multiple requests aren't made
Expand Down

0 comments on commit 29da042

Please sign in to comment.