Look like it may suit the style of an Angular JS app Having a quick look there is even a lib to take a Angular app offline:
https://github.com/goodeggs/angular-cached-resource Angular works similarly to they way you describe of using a single page and using pushstate to update URLs etc. On 11 December 2014 at 13:58, Jochen Daum <j...@automatem.co.nz> wrote: > I'm developing a largely CRUD based web application. It is > multi-tenanted. 2 of its entities need to be available offline. > > If it was not offline I would use a RESTful url architecture for the > urls, such as /action/5/edit, /action, /farmer/3/view etc. However > based on this article: > http://alistapart.com/article/application-cache-is-a-douchebag I would > need to create a very long cache manifest for all actions and farmers > that this user is allowed to access and I don't know how I would add > newly created actions to this manifest. Each manifest file would also > have to change for each user. > > I want to retain the ability for a super user to edit multiple items > in the same browser at the same time and I want to be able to bookmark > and link to specific entities. > > To achieve this, I'm planning to serve the offline capability from one > single url and use url parameters to create bookmarkable links. > > While the offline functionality will load all data in any case if > online, the javascript inside will pick up the url parameters to load > the correct entity and if other entities are accessed - i.e. > "pseudo-navigated" to, it will change the url in the browser. > > I would like to know any way I can achieve this easier, or any > improvements that could be made to this architecture. > > > -- > Kind Regards, > > Jochen Daum > > "There is no shortcut to anywhere worth going" - Beverly Sills > > Automatem Ltd > Tauranga: +64 7 281 1289 > Auckland: +64 9 630 3425 > Mobile: +64 21 567 853 > Email: j...@automatem.co.nz > Website: www.automatem.co.nz > Skype: jochendaum > http://nz.linkedin.com/in/automatem > http://twitter.com/automatem > > -- > -- > NZ PHP Users Group: http://groups.google.com/group/nzphpug > To post, send email to nzphpug@googlegroups.com > To unsubscribe, send email to > nzphpug+unsubscr...@googlegroups.com > --- > You received this message because you are subscribed to the Google Groups > "NZ PHP Users Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nzphpug+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to nzphpug@googlegroups.com To unsubscribe, send email to nzphpug+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "NZ PHP Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to nzphpug+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.