page.js

Polymer Routing with page.js do not add hashbang to URLs when links are opened in new tab

北战南征 提交于 2020-01-06 01:31:05
问题 I am using polymer starter kit which uses page.js for routing. The hashbang page option is set to true in routing.html // add #! before urls page({ hashbang: true }); when links such as <a href="/products/productname"></a> are clicked, the #! is added and the resulting url looks like this: http://localhost:3000/#!/products/productname but when the links are opened in a new browser tab, they look like this http://localhost:3000/products/productname . How can I have the #! added when links are

AppCache misbehaving in Safari, Firefox

好久不见. 提交于 2019-12-22 05:20:19
问题 I'm having some major trouble with AppCache. I've got a single page application (with real URLs using using Page.js and loading HTML from the server on page load, (dispatch: false) It's running on Bode.js, in particular it's a Sails.js app. I've got a manifest file in the HTML tag of the layout. The manifest file has been tested repeatedly and everything checks out. It works flawlessly in Chrome. Even in Safari, it shows up in the inspector correctly and has a list of the assets listed in the

AppCache misbehaving in Safari, Firefox

﹥>﹥吖頭↗ 提交于 2019-12-05 07:34:55
I'm having some major trouble with AppCache. I've got a single page application (with real URLs using using Page.js and loading HTML from the server on page load, (dispatch: false) It's running on Bode.js, in particular it's a Sails.js app. I've got a manifest file in the HTML tag of the layout. The manifest file has been tested repeatedly and everything checks out. It works flawlessly in Chrome. Even in Safari, it shows up in the inspector correctly and has a list of the assets listed in the file. So far so good. However, when offline, Safari fails to load anything but the HTML document