M

Mokai

Member

Last active 4 years ago

  1. 4 years ago
    Mon Jul 8 14:38:33 2019

    Sir, please, what I'm trying say is that external content IS getting stored, if you could please try to reproduce what I'm saying, you could grasp more of it. I'm not saying that the first or second behavior is strange, I'm more interested on the third boot, if external content wasn't getting cached, then, how the chart is getting printed? If you want, I can provide the .apk for inspection.

  2. Mon Jul 8 12:23:52 2019
    M Mokai started the conversation Highly Cached strange behaviour.

    Hello, I'm trying to understand how Highly Cached works, but I'm sure there is something wrong with it, this is what I thought:

    Note: This is an hibrid app, it use online and offline content.

    Normal Cached App

    index.html --> Available locally (offline)
    style.css --> Available locally (offline)
    index.js --> External content (online)
    library.js --> Available locally (offline)

    In this case, the person needs to be Online to get index.js, and when the app is closed, the file is gone, it can't be accessed anymore until the app is used again and thee person is online.

    Highly Cached App

    index.html --> Available locally (offline)
    style.css --> Available locally (offline)
    index.js --> External content (online)
    library.js --> Available locally (offline)

    Per my understanding, index.js is cached "permanently" when the app is first booted online, you can use it when you are offline, just like local storage on JavaScript, and it's updated when you are online again.

    The Problem

    It half works... It works expectedly when online, when offline, it alternates between "file available" and "file not available". This two screenshots were taken when I was offline (also no mobile data).

    -image-
    -image-

    Again, if I booted the app a third time, the chart would be available even thought I didn't connect to any form of data or internet, if I booted a fourth time, the chart wouldn't be available again, a fifth, it would, and continues likes this.

    To reproduce the issue, just make an offline app with highly cached enabled that gets at least one external resource.

    Your program is awesome, I just need my apps to be available both online and offline.

    ~ Thank you and regards.

  3. Mon Jul 8 07:58:48 2019
    M Mokai joined the forum.