How to make a site available offline

I want to make my site available offline even if the user clears the cache and cookies. Is it possible? I am also dealing with a database. Is it possible to work with databases offline?

+7
source share
5 answers
  • The user can store a local copy of one web page using Chrome (right-click save-as) and save all resources (images, css, js) to fully load the page offline. Other browsers will have similar options.

  • You can use wget to mirror the entire site for offline viewing.

    wget --mirror --convert-links --html-extension -p http://www.example.com/ 

    Of course, none of these parameters will process elements based on the database of your site / page.

  • If you want to mock a database or dynamic page elements offline, then Google Gears is probably the closest thing to what you are, but I think that Google is not outdated last year.

+10
source
+7
source

To save local data and access it offline, browse through Gears and Web Storage .

The main problem is what degree of functionality you want to provide on your website. This always requires some work on the client (user) side in order to "store" aka. keep your site offline. You will need to store all your functions on one page that the user saves (whether it be a Flash movie or some kind of Javascript code).

0
source

You can use a simple command to download the entire site locally, with all links working correctly.

 wget -rk 'http://www.website.com' 

For https url you need to add another property as shown below:

 wget -rk --no-check-certificate 'https://www.website.com' 
0
source

Not if your databases are hosted online. then you need an Internet connection for PHP / ASP (regardless of what you use to work with the database) to connect / communicate with

-one
source

All Articles