You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
containing AMP documents, signed with a certificate associated with the origin,
11
-
with a maximum lifetime of 7 days. In the future, the[Google AMP
12
-
Cache](https://www.ampproject.org/docs/fundamentals/how_cached) will fetch,
11
+
with a maximum lifetime of 7 days. The[Google AMP
12
+
Cache](https://amp.dev/documentation/guides-and-tutorials/learn/amp-caches-and-cors/how_amp_pages_are_cached/) will fetch,
13
13
cache, and serve them, similar to what it does for normal AMP HTML documents.
14
14
When a user loads such an SXG, Chrome validates the signature and then displays
15
15
the certificate's domain in the URL bar instead of `google.com`, and treats the
@@ -18,6 +18,8 @@ web page as though it were on that domain.
18
18
The packager is an HTTP server that sits behind a frontend server; it fetches
19
19
and signs AMP documents as requested by the AMP Cache.
20
20
21
+
As an alternative to running the packager, you can sign up for one of the SXG [service providers](https://github.com/ampproject/amppackager/wiki/Service-Providers).
22
+
21
23
## Packager/Signer
22
24
23
25
### How to use
@@ -102,6 +104,10 @@ For now, productionizing is a bit manual. The minimum steps are:
102
104
2. If the URL points to an AMP page and the `AMP-Cache-Transform` request
103
105
header is present, rewrite the URL by prepending `/priv/doc` and forward
104
106
the request.
107
+
108
+
NOTE: If using nginx, prefer using `proxy_pass` with `$request_uri`,
109
+
rather than using `rewrite`, as in [this PR](https://github.com/Warashi/try-amppackager/pull/3),
110
+
to avoid percent-encoding issues.
105
111
3. If at all possible, don't send URLs of non-AMP pages to `amppkg`; its
106
112
[transforms](transformer/) may break non-AMP HTML.
107
113
4. DO NOT forward `/priv/doc` requests; these URLs are meant to be
@@ -121,19 +127,21 @@ For now, productionizing is a bit manual. The minimum steps are:
0 commit comments