我正在使用以下链接学习 AMP with rails
https://coderwall.com/p/wpyasq/how-to-create-an-amp-page-for-your-dynamic-content-in-rails
我已经使用以下链接克隆了一个示例应用程序
https://github.com/ProGM/rails-google-amp-example
该应用程序非常简单,它只包含一个显示页面。
所以当我打
http://localhost:3000/articles/1
它转到文章控制器显示操作,只接受一个请求。
当我打
http://localhost:3000/articles/1.amp
它需要4个请求。我找不到原因。
注意:如果我更换
<!doctype html>
<html amp>
至
<!doctype html>
<html>
它只需要一个请求。
帮助将不胜感激
谢谢