ampproject / ampproject/amphtml

AMP Cache filter amp lib javascript files out

Open
#37,830 3 comments 0 reactions 0 assignees View on GitHub
P1: High Priority Stale Type: Bug WG: caching
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

To whom it may concern:

This is my [AMP page](https://tw.bid.yahoo.com/amp/homepage), It works well and amp libs could be load as usual. (I use `LTS` version)
image

But when i check [AMP cache](https://tw-bid-yahoo-com.cdn.ampproject.org/c/s/tw.bid.yahoo.com/amp/homepage), We can see amp libs can't fetch back. Looks like AMP cache filter these amp lib requests out. There will be only blank page without any content. It will also affect Google Search Result AMP Viewer display and make SEO sucks.
image

I wonder can someone help for this issue ?

Here comes my Chrome version: 99.0.4844.51 (Official Build) (x86_64).

### Reproduction Steps

1. Visit [AMP Cache page](https://tw-bid-yahoo-com.cdn.ampproject.org/c/s/tw.bid.yahoo.com/amp/homepage).
2. Check source code or DevTools Network panel. AMP Libs js requests were filter and no longer exist.

### Relevant Logs

_No response_

### Browser(s) Affected

Chrome

### OS(s) Affected

macOS Monterey VERSION 12.2.1

### Device(s) Affected

_No response_

### AMP Version Affected

2201262038001

Contributor guide

Open the contributing guide

Research direction

Start by comparing the AMP Cache page with the original AMP page, using the source code and Chrome DevTools Network panel to trace the missing AMP library JavaScript requests. Done means the cached page loads the AMP libraries and renders its content, including in the AMP Viewer.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.