by gregable · 7y ago · 0 comments
As reported in the paper, prerendering only affects amp pages in the first viewport of the search results, which is reported as 10% of the results in their sample. Prerendering does not have any security issues. AMP guarantees that all resources in preload are served by the AMP cache, and custom javascript is prevented by your browser via CSP.
Javascript based analytics works fine, with support for all major vendors and custom setups.
> Prerendering does not have any security issues.
Currently. Are you saying it is impossible that someone will hide a hack in an amp page that steals data or sth without the user ever visiting that amp page?
> AMP guarantees that all resources in preload are served by the AMP cache,
What about privacy? are user data sent through google's servers?
> Javascript based analytics works fine, with support for all major vendors and custom setups.
How do those analytics handle prerendering?
When using signed exchanges, the preload does not even parse the document until navigation, as per the signed exchange spec.
Analytics loading is deferred until after user navigation, which makes sense as the user has yet to navigate to the document.
The AMP Cache serves publicly cached HTML documents, and the static fonts/images within those documents. If a document wants to render user specific data, it can load that directly from the publisher's origin upon navigation (not routed via the AMP Cache). See, for example https://amp.dev/documentation/components/amp-list/. Analytics, ads, etc are all fetched directly from the vendor or publisher origin and the AMP Cache will neither proxy nor otherwise see this data.
Entering the URL directly will make an HTTPS request to the URL's origin server, as it always has. There will be no AMP Cache involved in that request, but it will work just the same.