Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can upup.js make multiple offline page specific URL ? #148

Open
ridwanskaterock opened this issue Sep 11, 2020 · 1 comment
Open

Can upup.js make multiple offline page specific URL ? #148

ridwanskaterock opened this issue Sep 11, 2020 · 1 comment

Comments

@ridwanskaterock
Copy link

Can upup.js make multiple offline page specific URL?

I have a web build with upup with multiple page application, and this web can be accessed if offline.
image

if i requested page

/chat_contact/add
or
/chat_contact

why this screen give offline text ?
even though i define this page in array

sample code for it

<script>
        UpUp.start({
          'assets': [
            '/logo.png', 
            '/css/style.css', 
            '/chat_contact', 
            '/chat_contact/add', 
            '/chat_contact/edit', 
            '/chat_contact/view'
          ],

        });
    </script>

Thanks

@dcorriveau
Copy link

If I'm understanding the application correctly (and @TalAter can correct me if i'm wrong), you would define the html page directly, such as:

<script>
        UpUp.start({
          'assets': [
            '/logo.png', 
            '/css/style.css', 
            '/chat_contact.html', 
            '/chat_contact/add.html', 
            '/chat_contact/edit.html', 
            '/chat_contact/view.html'
          ],
        });
    </script>

However, i'm not sure if this is the idea you are going for, as this would only cache the actual html page itself, with no assets in it...

To me, it would make more sense to define UpUp.start in every page that you intend to use it in, and defining assets in that page....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants