Skip to content

Commit 58d2a98

Browse files
authored
Document UTF-8 cache requirements. (#381)
1 parent 4d78e9e commit 58d2a98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/cache_requirements.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ These include:
2020
* Parameter values of type string, binary, or identifier.
2121
* The payload must be:
2222
* non-empty.
23+
* well-formed UTF-8 that doesn't contain:
24+
* any characters that cause a parse-error during [HTML preprocessing](https://html.spec.whatwg.org/multipage/parsing.html#preprocessing-the-input-stream)
25+
* U+0000 NULL
2326
* valid transformed AMP. The canonical definition of transformed AMP is the
2427
return value of [`transform.Process()`](https://github.com/ampproject/amppackager/blob/e4bf0430ba152cfe82ccf063df92021dfc0f26a5/transformer/transformer.go#L219).
2528
If given a [valid AMP](https://github.com/ampproject/amphtml/tree/master/validator)

0 commit comments

Comments
 (0)