i need architecting new application.
the gist of have web-based application serves pdf's quite large in nature, anywhere 2mb 100mb. intranet (not internet) application hundreds of users. users view pdf's inline (i.e. embedded in web page), alongside custom navigation. clicking on navigation links load different pdf's in viewer panel (no, pdf bookmarks don't solve same problem in case).
the viewer part easier -- embed in iframe, or acrobat, or pdf.js, etc.
(this visual example of we're getting at: http://partstore.agriculture.newholland.com/us/parts-search.html#epc::mr48569ar123471 -- no don't see tractor parts! it's similar functionality.)
the main things we're worried a) traffic. loading/reloading large pdf's across network every time consume unnecessary resources. b) needs work offline pre-cached content. user download/cache hundreds of pdf's. looks new features of html5 immensely here.
so, started @ application cache cache application files. i'm aware of of shortcomings of this, it's obvious route. seems must explicitly declare files want cache. that's great application files or if every user cached same stuff. user should able click "pre-load these 500 pdf's can @ them offline". gets outside of app cache manifest.
so i'm looking @ localstorage options it's unclear me how leverage that. user needs pre-load hundreds of pdf's. while online, app should pull them down server , app reference cached versions while offline -- or online if pdf on server hasn't been updated recently. api's should at? how play nice application cache?
as aside, our corporate standards both ie11 , chrome (currently v50). it's fine force 1 or other. , understanding of local storage app must request unlimited storage (see here https://developer.chrome.com/apps/offline_storage). fine, i'm unclear if need create formal chrome app?
the nearest example can think of google drive. somehow loads docs/spreadsheets/etc. offline if visit drive.google.com disconnected internet, files load. yet files dynamic , not in cache manifest (right?). how google drive store these dynamic files offline, , how application know load cache/local storage instead of internet?
and, in contrast, run issues binary data pdf?
thoughts appreciated!
thanks tom
Comments
Post a Comment