javascript - Appending cache manifest to existing site -


is possible add cache manifest programmatically right after page loaded? adding attribute html tag javascript , re-init/re-load page?

i want add cache manifest page cannot edit html itself.

some tests did while ago found working if redirect site cache manifest correctly specified.

the application cache works per domain. gives 2 different cases: 1. it's site on our domain or 2. it' external site.

  1. because need specify manifest on main site (or other site guaranteed visited, otherwise can strange behaviour) can put bouncer in front of house: make dummy page (=bouncer, displaying spinner or progress bar) whith cache manifest correctly specified. dummy page can check if there changes , swap cache. after loading resources redirect "real" entry point of application (the bouncer granted access).

  2. if external page, have choose workaround reading content of site on server side , correct there (so looks it's site on domain). can cache external site other resource , load external site in iframe, put: uri displayed in browser has on domain. if think it, it's reasonable, otherwise make site caches stackoverflow forever , visited site have no more updates stackoverflow (oversimplified, should point accross).


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -