Feeds:
Posts
Comments

Archive for August, 2013

If you don’t really know about this amazing framework (Durandal.js) for building SPA application , I really recommend you take a look on it .

A general issue when deploying SPA applications is dealing with the cashed views and view models on the browser . When we navigate to version 1 and deploying version 2 browsers will not take our new modifications.

I face this issue also with Durandal, but fortunately I found a very nice solution using Durandal optimizer.

When you run the optimizer , it will create a new file called main-build.js , it bundles all the Durandal app parts (including our modules)  in a single file  under the APP folder , then I deploy it with the original version to the server .

When deploying a new version , I create a new file and append to it version number (min-build-V1.0.0.0.js) , then the browser will download the new update application.

Hope this help .

 

Advertisements

Read Full Post »