I've updated offliner and now it's possible to configure it in such a
way it will download a zip of the app and use its contents to populate
the cache as Benjamin Kelly suggested.
You have more info at [1]. Notice, it now depends on the zip.js library
but it is still possible to collapse all the sources in only one keeping
the advantages of "include these only files and voilà".
I'm thinking about the update process. Something related with E-tags and
updating channels providing up to date packed apps.
Furthermore, I missed some useful hooks and functionalities in Service
Workers proposal as the ability of force an update or some event that
triggers each time it starts running (not when installed or activated
but when it starts to run).
It could be great if SW could start other workers too. :)
What do you think?
On 31/01/15 12:32, [email protected] wrote:
This is a good challenge: make the flow Ben described before as simple as
zipping a file for a developer. We are already working in something similar, I
hope we can share it soon.
El viernes, 30 de enero de 2015, 21:22:21 (UTC+1), Dietrich Ayala escribió:
Sounds almost as simple as zipping some files up! ;)
On Fri, Jan 30, 2015 at 12:20 PM, Benjamin Kelly <[email protected]> wrote:
On Fri, Jan 30, 2015 at 3:10 PM, Dietrich Ayala <[email protected]> wrote:
What about dodgy network performance?
A website-in-a-zip will be a single network request, which might perform far
better under some network conditions than many network requests.
You can implement this in Service Workers. Intercept the fetch events for
individual resources, make a single fetch() for an archive blob, split it up in
the SW, stick the resources in the Cache individually. Then subsequent fetch
events find the individual resources in the Cache. (Similar to the Hacks post
I'm working on.)
Ben
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
________________________________
Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede
contener información privilegiada o confidencial y es para uso exclusivo de la
persona o entidad de destino. Si no es usted. el destinatario indicado, queda
notificado de que la lectura, utilización, divulgación y/o copia sin
autorización puede estar prohibida en virtud de la legislación vigente. Si ha
recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente
por esta misma vía y proceda a su destrucción.
The information contained in this transmission is privileged and confidential
information intended only for the use of the individual or entity named above.
If the reader of this message is not the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this communication
is strictly prohibited. If you have received this transmission in error, do not
read it. Please immediately reply to the sender that you have received this
communication in error and then delete it.
Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode
conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa
ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica
notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização
pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem
por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e
proceda a sua destruição
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g