ampproject / amphtml

The AMP web component framework.
https://amp.dev
Apache License 2.0
14.89k stars 3.89k forks source link

Cloudflare (and maybe other) CDN breaking AMP pages #2380

Closed weeblr closed 7 years ago

weeblr commented 8 years ago

Hi, After this discussion, https://productforums.google.com/forum/#!msg/webmasters/_EFTDi1koJo/EAoRom0fIQAJ, Tomo T suggested we open an issue here.

It's a known issue (#1662) that Cloudflare (and maybe other) are breaking AMP pages by inserting on the fly some javascript that do not comply with AMP specs.

Tomo T mentioned you guys are in touch with cloudflare, so maybe resolution is on its way, but in our wbAMP plugin for Joomla, we did the following: 1 - added no-cache headers 2 - Added a X-amphtml: wbAMP header, so that users can setup rules to bypass those pages in their CDN control panel for instance.

Is there any merit to this?

Rgds

javdl commented 8 years ago

@venkatgig Just add: // Disable newrelic if (extension_loaded('newrelic')) { newrelic_disable_autorum(); }

Somewhere in your template PHP

weeblr commented 8 years ago

@RReverser We are still having a user with this problem, though the code inserted is not exactly the same as initially, I think:

`

Githubissues.
  • Githubissues is a development platform for aggregating issues.