“Este site está pedindo para armazenar dados no seu computador para uso offline”

2

Sempre que visito alguns sites usando o Firefox, recebo a caixa de diálogo abaixo solicitando que "armazene dados no seu computador para uso off-line".

Ele é exibido se eu estiver usando o Firefox, mas não se estiver usando o Chrome.

Por que isso aparece? O que isso significa? O que é esse armazenamento de dados? Como isso é diferente do cache do navegador? Por que o FF o exibe, mas o Chrome não o faz?

Estou usando o Ubuntu 12.04.2, o Firefox 23.0 e o Chromium 28.0.1500.71 Ubuntu 12.04 (28.0.1500.71-0ubuntu1.12.04.1)

    
por That Brazilian Guy 02.09.2013 / 23:03

2 respostas

4

O site solicita permissão para usar a API de aplicativos da Web off-line HTML5 :

Users of typical online Web applications are only able to use the applications while they have a connection to the Internet. When they go offline, they can no longer check their e-mail, browse their calendar appointments, or prepare presentations with their online tools. Meanwhile, native applications provide those features: e-mail clients cache folders locally, calendars store their events locally, presentation packages store their data files locally.

In addition, while offline, users are dependent on their HTTP cache to obtain the application at all, since they cannot contact the server to get the latest copy.

The HTML 5 specification provides two solutions to this: a SQL-based database API for storing data locally, and an offline application HTTP cache for ensuring applications are available even when the user is not connected to their network.

Mergulhe no HTML5 explica ainda mais:

At its simplest, an offline web application is a list of URLs — HTML, CSS, JavaScript, images, or any other kind of resource. The home page of the offline web application points to this list, called a manifest file, which is just a text file located elsewhere on the web server. A web browser that implements HTML5 offline applications will read the list of URLs from the manifest file, download the resources, cache them locally, and automatically keep the local copies up to date as they change. When the time comes that you try to access the web application without a network connection, your web browser will automatically switch over to the local copies instead.

Como você percebeu, isso é separado do cache normal do navegador. Eles servem dois propósitos diferentes; o cache do navegador é usado para acelerar o acesso a recursos comumente usados, enquanto isso é usado para armazenar aplicativos da Web off-line e seus recursos.

Parece que o Chrome permite que os webapps se armazenem off-line sem a permissão do usuário. O Firefox, por outro lado, pede permissão antes de permitir que os webapps usem as APIs offline.

    
por 02.09.2013 / 23:51
-2

ele quer que você "baixe" esta página para que ela possa ser assistida sem conexão com a internet às vezes nem toda a página, mas algo longo para carregar

    
por 02.09.2013 / 23:30