Polymer / pwa-starter-kit

Starter templates for building full-featured Progressive Web Apps from web components.
https://pwa-starter-kit.polymer-project.org
2.36k stars 431 forks source link

[lighthouse improvement] Serve static assets with an efficient cache policy #317

Closed abdonrd closed 5 years ago

abdonrd commented 5 years ago

Serve static assets with an efficient cache policy. A long cache lifetime can speed up repeat visits to your page. Learn more.

screenshot 2019-01-11 at 13 13 42
keanulee commented 5 years ago

As @frankiefu mentioned in the referenced PR, a long cache policy could result in users getting a mix of old/new assets on browsers without SW pre-caching. Since the SW serves as a caching layer on supported browsers, this shouldn't be a real world issue.