You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application with a lot of big images (400-500Kb), and I want to cache them with NW to prevent them load every time. I placed a manifest file on my VPS, setup all headers and etc, but when i'm using
In NW, i don't see anything changed on Resource tab in DevTools. If I create an index.html file on the server and specify those manifest file - it works. Can you tell me what i'm doing wrong?
UPD: If I upload index.html to the server, than cache works fine. But i'd like not to do it. Of course, i assume that on start i can create custom server in node part, but it's strange that i can't serve manifest file without those workaround.
UPD 2: In fact, it's impossible to properly use appcache in NW applications. If you point to remote resource for index.html with manifest specified, you lose any possibility to use node-webkit's dual scope, i.e. you can evaluate only window-scope expressions. Otherwise, appcache manifest isn't loaded.
The text was updated successfully, but these errors were encountered:
@Kureev you can use app cache when loading remotely. You need to also add the node-remote attribute to the manifest file if you wish to access dual scope on a remote page.
@tommoor Thanks a lot, I think it should help. So in fact, I should run local server and serve all files thru it with enabled node-remote in my node-webkit manifest file, right? I'll try it and resolve this issue if it'll help.
Hi all,
I have an application with a lot of big images (400-500Kb), and I want to cache them with NW to prevent them load every time. I placed a manifest file on my VPS, setup all headers and etc, but when i'm using
In NW, i don't see anything changed on Resource tab in DevTools. If I create an index.html file on the server and specify those manifest file - it works. Can you tell me what i'm doing wrong?
UPD: If I upload index.html to the server, than cache works fine. But i'd like not to do it. Of course, i assume that on start i can create custom server in node part, but it's strange that i can't serve manifest file without those workaround.
UPD 2: In fact, it's impossible to properly use appcache in NW applications. If you point to remote resource for index.html with manifest specified, you lose any possibility to use node-webkit's dual scope, i.e. you can evaluate only window-scope expressions. Otherwise, appcache manifest isn't loaded.
The text was updated successfully, but these errors were encountered: