Move (asset) url-crawling for the service worker client side and refactor crawling to get all assets

Created on 13 September 2023, over 1 year ago

Problem/Motivation

Currently, we are crawling the cashable assets for a page through PHP in "fetchOfflinePageResources()". This can lead to performance issues and instead, we should use a dedicated javascript library to crawl the cachable assets.

Furthermore, we should refactor the crawling, as it doesn't take every asset into account. From the parent issue:

Crawling is not sufficient, it will not find URLs in subsequent CSS & JS files for example (using @import (CSS) or import (JS)) so it's by far not complete

Steps to reproduce

Proposed resolution

Use a dedicated js library to crawl the cachable assets.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Grevil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024