Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 865 by ashay007: Opera Mobile - Managed Store not functioning as specified
http://code.google.com/p/gears/issues/detail?id=865

What steps will reproduce the problem?

1. Create a Managed Store
<html>
<head>
<script>
var siteStores = {
        'img': '/manifest/img.json',
        'js':  '/manifest/js.json'
};

var localServer = google.gears.factory.create('beta.localserver');

for (var storeName in siteStores) {
        var stores = localServer.createManagedStore(storeName);
        stores.manifestUrl = siteStores[storeName];
        stores.checkForUpdate();
}
</script>
</head>
<body>
Hello world
</body>
</html>

when the above script is executed the stores are created. Server reflects
requests for the json file followed by the resources and then the json file
with validate-manifest header as expected. Only 1 problem - second request
for json file does not have if-modified-since header. However as version is
same  client doesnot perform any further action. All parameters of the
store (version, status = 0) reflect proper values.

2. Now change version in the manifest file and some resource in the
manifest then refresh the page.
3. Store doesnot have updated resource. The server reflects 2 hits for the
manifest files - one with validate-manifest header, however no
if-modified-since header, but no request from the client for the resources
specified as urls in the manifest file. If new resource is added in the
manifest file it is fetched from the server. The client shows activity of
fetching files but requests are not reflected on the server. I am using a
wifi network to test. There is no node between the phone and the server
just the router.

What is the expected output? What do you see instead?
Code works fine within same wifi network from a laptop and Firefox.

What version of the product are you using? On what operating system?
Windows Mobile 6 [CE OS 5.2.1623 (Build 18128.0.4.5)] and Opera
Mobile(opera_v9.5beta2_gears.cab) and Google
gears(gears-wince-opt-opera.cab) on an i-mate Ultimate 8502
I am using LAMP architecture on the server.

Please provide any additional information below.
Opera config has the default values - opera:config no modifications
Have tried setting Expires and Cache headers with no change in outcome.
Server is sending Date, Last-Modified and E-Tag headers.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to