How to synchronize an offline application (HTML + JS + CSS) with my server?

Do I need to implement my own synchronization methods in order to make a standalone web application (html + css + js) stay up to date with the changes made on the server (and vice versa)? I use MySQL server side.

I read two-way synchronization between the iPhone app and the web app with some pointers, but I think they talk about native apps when they mention CFUUIDCreate, and I wander if it's possible for the Web.

Does anyone have a code to share or can point me in the right direction?

Thank!

PS: I hope my English is not so rusty;)

+3
source share
2 answers

To store static content on the client side , as Jethro Larson said, a cache application manifest is a way to cache static content on your site (HTML, CSS, JS, and images).

To process dynamically generated content offline , you can use javascript templates. There are several solutions for this .

, persistence.js(persistencejs.org), javascript, API WebSQL, .. , persistence.sync(persistencejs.org/plugin/sync), . POST GET URL-, (, yourapp.dev/sync). , node.js Rails. persistence.sync .

+2

Source: https://habr.com/ru/post/1761203/


All Articles