Use Cases for DataCache

I discussed a set of use cases not well supported by HTML5 ApplicationCache with the HTML WG during a breakout session at TPAC. These use cases were the basis for AtomDB are being solved by the DataCache API.

Found out that OMA and AT&T had similar ideas too. Also learnt that these techniques could be merged with HTTP caching.

Hixie agreed these use cases covered the ones the GMail team had asked for but he favored waiting until after AppCache had stabilized and browser implemented other HTML5 stuff.

I have overheard that IMHO, the data URLs that would have to be cached would usually be requested using AJAX. Hence, this functionality can be achieved with a combination of AppCache and WebDatabase specifications. Since we really don’t care about what type of data the server returns, we can’t be sure if there is a case of interoperability here.

I also received an e-mail asking: How would you show a thumbnail of an image that you may have downloaded as the attachment for an email? That would require you to use an <img> tag. Not everything can be put through Ajax requests.

To that I say, Dynamic thumbnails today are usually downloaded a image sprites to save the number of HTTP connections made to the server. In our given context, to show (and cache)dynamic image data, AJAX requests are made, with responses returning data URIs of the images. The returned result can be stored and displayed with AJAX.

For really large images (and for IE that does not support data URIs), the base64 image data can be sent and drawn on canvas with Javascript. Improvements like JPEG decoders written in Javascript are also an option when encoding is required.

Comments

  1. By AkaschaPi

    Reply

  2. By FarmonSt

    Reply

  3. By Basirfato

    Reply

  4. By IrhabarGabe

    Reply

  5. Reply

  6. By Enzogowl

    Reply

  7. By LaresFum

    Reply

  8. By Kelvinham

    Reply

  9. By CampaRerb

    Reply

  10. By Peraturcop

    Reply

  11. By JoseSl

    Reply

  12. By TjalfSl

    Reply

  13. Reply

  14. By Hareker

    Reply

  15. By Jarockvoto

    Reply

  16. By WarzenElder

    Reply

  17. By SulfockBlig

    Reply

  18. By Tuwassa

    Reply

  19. By FasimSor

    Reply

  20. By GrubuzDen

    Reply

  21. By MuratBiop

    Reply

  22. By EsielBoli

    Reply

  23. By SivertOa

    Reply

  24. By Hansonhick

    Reply

  25. By TamkoschEvek

    Reply

  26. By Potrosaren

    Reply

  27. By Kaelinmi

    Reply

  28. Reply

  29. By RoyCast

    Reply

  30. By RhobarFugh

    Reply

  31. By JarollPa

    Reply

  32. By RozhovKT

    Reply

  33. Reply

  34. By Potrosaren

    Reply

  35. By GivessHaut

    Reply

  36. By SulfockBlig

    Reply

  37. By EsielTymn

    Reply

  38. By EsielBoli

    Reply

  39. By Mine-Bossdug

    Reply

  40. By Akraborkix

    Reply

  41. By Hansonhick

    Reply

  42. By MuratBiop

    Reply

  43. By Kaelinmi

    Reply

  44. By FasimSor

    Reply

  45. By Lestercync

    Reply

  46. By SivertOa

    Reply

  47. By Tragakfat

    Reply

  48. By Tuwassa

    Reply

  49. By Willot

    Reply

  50. By Givesskep

    Reply

  51. By CyrusWeM

    Reply

  52. Reply

  53. By Olivierkr

    Reply

  54. Reply

  55. Reply

  56. Reply

  57. By TomEt

    Reply

  58. By EnzoKap

    Reply

  59. By Georgnumb

    Reply

  60. By Porganml

    Reply

  61. By Tarokheri

    Reply

  62. By SamuelZeks

    Reply

  63. By Curtissn

    Reply

  64. By AyitosNix

    Reply

  65. By Joshidog

    Reply

  66. By Fraserkr

    Reply

  67. By SnorreHisy

    Reply

  68. By IomarCor

    Reply

  69. By ArokkhFelo

    Reply

  70. By Goosecing

    Reply

  71. By ArakosKr

    Reply

  72. By ThoraldLolo

    Reply

  73. By Kipplerket

    Reply

  74. By MusanPele

    Reply

  75. By EmetPup

    Reply

  76. By BasirSef

    Reply

  77. Reply

  78. By EsielPa

    Reply

  79. By Bogirel

    Reply

  80. Reply

  81. By BruceCOB

    Reply

  82. By RaymondRog

    Reply

  83. By BruceCOB

    Reply

  84. Reply

  85. By Rodneygob

    Reply

  86. Reply

  87. By RobertMok

    Reply

  88. Reply

  89. Reply

  90. Reply

  91. By ScottDip

    Reply

  92. Reply

  93. Reply

  94. Reply

  95. By GlennLut

    Reply

  96. By Alexisruimi

    Reply

  97. By Robertaropy

    Reply

  98. By AnthonyAsymn

    Reply

  99. By Zes

    Reply

  100. By LashesProcype

    Reply

  101. By Williamhaide

    Reply

  102. Reply

  103. By Copperol

    Reply

  104. Reply

  105. Reply

  106. Reply

  107. By RobertMok

    Reply

  108. Reply

  109. Reply

  110. By Canadmanst

    Reply

  111. Reply

  112. Reply

  113. Reply

  114. By thabs

    Reply

  115. Reply

  116. Reply

  117. By ves

    Reply

  118. Reply

  119. By RobertMok

    Reply

  120. Reply

  121. Reply

  122. By jtpkogn

    Reply

  123. Reply

  124. By AllanTup

    Reply

  125. By SEOSes

    Reply

  126. Reply

  127. Reply

  128. Reply

  129. Reply

  130. Reply

  131. Reply

  132. Reply

  133. Reply

  134. Reply

  135. Reply

  136. Reply

  137. Reply

  138. Reply

  139. Reply

  140. Reply

  141. Reply

  142. Reply

  143. Reply

  144. Reply

  145. Reply

  146. Reply

  147. Reply

  148. Reply

  149. By Seobortru

    Reply

  150. Reply

  151. Reply

  152. Reply

  153. Reply

  154. Reply

  155. Reply

  156. Reply

  157. Reply

  158. Reply

  159. Reply

  160. Reply

  161. By Anthonyhig

    Reply

  162. Reply

  163. Reply

  164. Reply

  165. Reply

  166. Reply

  167. Reply

  168. Reply

  169. Reply

  170. Reply

  171. Reply

  172. Reply

  173. Reply

  174. Reply

  175. Reply

  176. Reply

  177. Reply

  178. Reply

  179. Reply

  180. Reply

  181. Reply

  182. Reply

  183. Reply

  184. Reply

  185. Reply

  186. Reply

  187. By thabs

    Reply

  188. Reply

  189. Reply

  190. Reply

  191. Reply

  192. Reply

  193. Reply

  194. Reply

  195. Reply

  196. Reply

  197. Reply

  198. By Payday

    Reply

  199. Reply

  200. Reply

  201. Reply

  202. Reply

  203. Reply

  204. Reply

  205. Reply

  206. Reply

  207. Reply

  208. Reply

  209. Reply

  210. Reply

  211. Reply

  212. Reply

  213. By Nestor

    Reply

  214. Reply

  215. Reply

  216. Reply

  217. Reply

  218. Reply

  219. Reply

  220. Reply

  221. Reply

  222. Reply

  223. Reply

  224. Reply

  225. Reply

  226. By BrianMoumB

    Reply

  227. Reply

  228. Reply

  229. Reply

  230. Reply

  231. Reply

  232. Reply

  233. Reply

  234. Reply

  235. Reply

  236. By Isaacbot

    Reply

  237. Reply

  238. Reply

  239. Reply

  240. Reply

  241. Reply

  242. Reply

  243. Reply

  244. By ShaylaNes

    Reply

  245. Reply

  246. Reply

  247. Reply

  248. Reply

  249. Reply

  250. Reply

  251. Reply

  252. Reply

  253. Reply

  254. Reply

  255. Reply

  256. Reply

  257. Reply

  258. Reply

  259. Reply

  260. Reply

  261. Reply

  262. Reply

  263. Reply

  264. Reply

  265. Reply

  266. Reply

  267. Reply

  268. Reply

  269. Reply

  270. Reply

  271. Reply

  272. Reply

  273. Reply

  274. Reply

  275. Reply

  276. Reply

  277. Reply

  278. Reply

  279. Reply

  280. Reply

  281. Reply

  282. Reply

  283. Reply

  284. Reply

  285. Reply

  286. Reply

  287. Reply

  288. Reply

  289. By Payday

    Reply

  290. Reply

  291. Reply

  292. Reply

  293. Reply

  294. Reply

  295. Reply

  296. Reply

  297. Reply

  298. Reply

  299. Reply

  300. Reply

  301. Reply

  302. Reply

  303. Reply

  304. Reply

  305. Reply

  306. Reply

  307. Reply

  308. Reply

  309. Reply

  310. Reply

  311. Reply

  312. Reply

  313. Reply

  314. Reply

  315. Reply

  316. Reply

  317. Reply

  318. Reply

  319. Reply

  320. Reply

  321. Reply

  322. Reply

  323. Reply

  324. By Lorik66

    Reply

  325. Reply

  326. Reply

  327. Reply

  328. Reply

  329. Reply

  330. Reply

  331. Reply

  332. Reply

  333. Reply

  334. Reply

  335. Reply

  336. Reply

  337. By Loan

    Reply

  338. Reply

  339. Reply

  340. Reply

  341. Reply

  342. Reply

  343. Reply

  344. Reply

  345. Reply

  346. Reply

  347. Reply

  348. Reply

  349. Reply

  350. Reply

  351. Reply

  352. Reply

  353. Reply

  354. Reply

  355. Reply

  356. Reply

  357. Reply

  358. Reply

  359. Reply

  360. Reply

  361. Reply

  362. Reply

  363. Reply

  364. Reply

  365. Reply

  366. Reply

  367. Reply

  368. Reply

  369. Reply

  370. Reply

  371. Reply

  372. Reply

  373. Reply

  374. Reply

  375. Reply

  376. Reply

  377. Reply

  378. Reply

  379. Reply

  380. Reply

  381. Reply

  382. By Morrisbroft

    Reply

  383. Reply

  384. Reply

  385. Reply

  386. Reply

  387. By AjaxCOB

    Reply

  388. Reply

Leave a Reply

Your email address will not be published. Required fields are marked *