[Solved] Support for Cache API

New features which should be implemented in Porteus Kiosk Edition and the kiosk wizard.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
thewiz
White ninja
White ninja
Posts: 18
Joined: 08 Oct 2017, 16:53
Distribution: Ubuntu

[Solved] Support for Cache API

Post#1 by thewiz » 30 Nov 2018, 18:08

I'm looking at options for storing pages and content in general for offline use. I've seen there's a file://-based method for accessing such content. However, I would like to have a more web-based solution, that can be updated by the browser itself when needed, rather than pushing files over SSH. The Cache API, along with web workers, seem quite appropriate here:

https://developers.google.com/web/funda ... /cache-api

Is this something that can be used on Porteus Kiosk? Since it's built into Chrome, I would guess so. The main question is, how can I control where such data is stored? In this case, I would like to use a write-enabled USB as storage, where any "unused" space on the USB could be allocated for such use.

Can Porteus Kiosk be configured to accomodate this use case?

-JM
Last edited by thewiz on 01 Dec 2018, 08:57, edited 1 time in total.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Support for Cache API

Post#2 by fanthom » 30 Nov 2018, 19:55

Please disable private mode and use full persistence:
https://porteus-kiosk.org/parameters.html
Please add [Solved] to your thread title if the solution was found.

thewiz
White ninja
White ninja
Posts: 18
Joined: 08 Oct 2017, 16:53
Distribution: Ubuntu

Support for Cache API

Post#3 by thewiz » 01 Dec 2018, 08:57

Thanks!

-JM

Locked