w20-framework / w20

W20 is a Web framework, built upon a powerful RequireJS/AngularJS/Bootstrap mix to help you develop single page applications.
https://w20-framework.github.io/
Mozilla Public License 2.0
8 stars 9 forks source link

Application cannot be opened again in same tab after cache cleanup #68

Closed adrienlauer closed 8 years ago

adrienlauer commented 8 years ago

Steps:

(a): Clean browser cache (Forms and search history, Cookies, Cache, Active sessions). (b): Reload the page (F5 o Cltr+F5 o Reload option in browser, FF). I got the error:

Error report
[E] JSON.parse: unexpected end of data 
("session","isActive",false,true)@http://vfc580:8380/square-web/bower_components/w20/modules/env.js?__v=1.0.0:129
inBrowserSession()@http://vfc580:8380/square-web/bower_components/w20/modules/security.js?__v=1.0.0:1081
([object Object],[object Object],[object Object],[object Object],[object Object])@http://vfc580:8380/square-web/bower_components/w20/modules/security.js?__v=1.0.0:1085
invoke((function (authenticationService, applicationService, eventService, stateService, $location) {"use strict";
function inBrowserSession(state) {var sessionState = stateService.state("session", "isActive", false, true);return typeof state !== "boolean" ? sessionState.value() : sessionState.value(state);} …

I think this has been introduced by #58