Skip to content

Commit b89187b

Browse files
authored
Update header.md
1 parent f586ee2 commit b89187b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

tags/header.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
3232

3333
`name="string"`
3434
: Header name/type.
35-
: **Default:** `Content-Type`.
35+
: **Default:** unset.
3636

3737
`replace="boolean"`
38-
: Whether the existing HTTP header must be replaced entirely, or added to.
39-
: **Values:** `0` (no) or `1` (yes).
38+
: Whether the existing HTTP header must be preserved, replaced entirely, or added to.
39+
: **Values:** `0` (preserve) or `1` (replace) or other (add).
4040
: **Default:** `1`.
4141

4242
`value="string"`
4343
: Header value.
44-
: **Default:** `text/html; charset=utf-8`.
44+
: **Default:** unset.
4545

4646
## Examples
4747

@@ -58,7 +58,7 @@ If you don't want an article to be cached by the browser, then the corresponding
5858
If you need to output the articles from a section as a JSON document, the corresponding page template could be:
5959

6060
~~~ html
61-
<txp:header value="application/json; charset=utf-8" />
61+
<txp:header name="Content-Type" value="application/json; charset=utf-8" />
6262
[<txp:article break=",">
6363
{
6464
"title": "<txp:title escape="json" />",
@@ -73,6 +73,10 @@ Other tags used: [article](/tags/article), [title](/tags/title).
7373

7474
## Genealogy
7575

76+
### Version 4.8.5
77+
78+
Default attribute values modified.
79+
7680
### Version 4.7.0
7781

7882
Tag support added.

0 commit comments

Comments
 (0)