Skip to content

Conversation

@westonruter
Copy link
Member

Fixes #7882

@westonruter westonruter added the Bug Something isn't working label Oct 7, 2024
@github-actions

This comment was marked as outdated.

@westonruter westonruter added this to the v2.5.5 milestone Nov 11, 2024
@westonruter
Copy link
Member Author

Actually, we need to get rid of the amp-server-worker-runtime-precaching altogether because when serving Optimized AMP, the .mjs versions of the scripts are being served and not the .js ones. But we were precaching the .js files:

image

But these .js files aren't even used. So that's wasted download.

@westonruter
Copy link
Member Author

Now with the changes in this PR, only the .mjs scripts are added to the runtime cache and nothing is precached:

image

@westonruter westonruter changed the title Only add AMP scripts to runtime cache in Standard Mode Eliminate runtime precaching of AMP scripts in Service Worker Nov 12, 2024
@westonruter westonruter merged commit e9b7e61 into develop Nov 12, 2024
34 of 35 checks passed
@westonruter westonruter deleted the fix/pwa-runtime-cache branch November 12, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AMP scripts are added to runtime cache even if an AMP page is never accessed

3 participants