Skip to content

Configure service worker not to present stale content for frequently visited landing pages #22080

@IgorMinar

Description

@IgorMinar

Repro:

  • as a user I navigate to https://angular.io and stick around enough for sw to catch everything
  • Angular developers push an update to the angular.io homepage (e.g. new release announcement)
  • as a user I go to https://blog.angular.io and find a release announcement, I click on a link to https://angular.io/events that is mentioned in the blog post because of new events coming up

Expected result:

Current result:

The tricky thing about this is that we shouldn't do it in a way where it's going to affect our TTI.

The new sw has a feature where we can optimize for freshness, but that affects TTI.

Maybe we should consider a full page reload if we detect that the currently displayed content is stale? I'm not sure...

// @alxhub @StephenFluin

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfreq1: lowhotlist: devreltype: bug/fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions