Closed tcurdt closed 1 year ago
Im Serviceworker ruft er das Manifest unter folgendem Pfad auf: '/sw001/manifest.webmanifest', das Manifest selbst liegt aber hier: '/001/manifest.webmanifest' – dadurch wird nichts gecached.
Already worked on a bugfix. Still needs to be confirmed to be working. Sorry for the premature PR.
https://github.com/tcurdt/PwaBundle/blob/main/src/Classes/Services/ServiceWorkerFileWriter.php#L67
All good. I didn't have to make a version right away ;) If necessary, I will make a new version directly.
The path to the manifest is now generated correctly. The pages that are stored in the manifest are cached - but only the HTML (without images and scripts)?
Thanks. We check that. The path to the assets may also be wrong elsewhere.
Thanks. We check that. The path to the assets may also be wrong elsewhere.
So far I couldn't find that problem.
It looks like %contao.web_dir%
passes in the correct root.
it is what iterates the pages and builds the array of filenames - but I don't see assets handled there.
So maybe this just wasn't implemented yet?
The document root folder has changed
This change should support both locations. And and least not break the rest of the manifest if not found.