-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMP HTML documents handled via NetworkFirst strategy #70
Comments
//cc @patrickkettner |
hi @gilbertococchi! @sebastianbenz - Happy to change this on amp.dev - are you wanting to change the default behavior for amp-sw? or document why such an option should be used? would be a pretty large breaking change, but certainly doable |
Changing the default would mean revisiting the decisions here: https://github.com/ampproject/amp-sw/tree/master/src/modules/document-caching Considering the low usage of the module, this could be done with a major revision bump. Would @sebastianbenz or @patrickkettner want to test this on AMP.dev? |
Followed up in-person (over VC) and we decided to first test using a CacheFirst strategy using an override on |
Would it be possible to remove default AMP HTML document caching first and respect the HTTP Caching default behaviour? |
Just chiming in here from a service worker perspective:
|
On these points:
We haven't upgraded to later versions of |
Hi amp-sw community, I've noticed that the current logic of amp-sw might cause a FCP regression on AMP sites using HTTP caching on HTML documents but also using amp-sw "as is".
Below a screenshot for amp.dev showing that page refresh requests seems treated as Network First, always downloading the HTML document from Network.
If this is triggered by the enablement of an offline page I would suggest to switch to a CacheFirst strategy instead, maybe with a customisable max-age as safe lock or just relying on the SW versioning for caching.
FCP should improve significantly on sites using amp-sw with this strategy change.
The text was updated successfully, but these errors were encountered: