[whatwg] Application Cache

Edward Gerhold edward.gerhold at googlemail.com
Fri Apr 1 06:56:42 PDT 2011

Dear Working Group,

Here is the document behind the link i posted.

Application CacheEnhancements to the Caching FunctionsStoring dynamic,
generated and like before, static Data in the Cache*Abstract*

With this document i want to persuade the whatwg and the W3C to enhance the
application cache of HTML5, before the standard is seeming to be ready, and
to prevent to suggest it for HTML6, because a nonimplementation.
Dynamic Data

The appCache is not ready for storing dynamic data. This could be done by
the user by simply pressing a "cache this" button or a link or some other
function in a script.

There MUST be the possibility to add urls to the cache.

There MUST be the possibility to remove, modify urls in the cache and
to iterate
through, enumerate the cache.

The functions SHOULD or MUST fire a function-named event, e.g. ADD, REMOVE,

The events MUST carry the actual data, url, index number, possible id being
transmitted with.

Extensions to the appCache Interface

.add(url, data) - append a new element to the list
.insert(id, data) - move from pos all elements from the last on to the
insertion pos downwards (add last element as new)
.remove(id | url) - copy the next element to the pos, continue and
remove the last from the list
.modify(id | url, data) - change the element data in the list

don´t forget to save to disk

Enumeration of the Cache
returns active element seeked to
with index number, url and possibly id and data

.begin() - start pointer
.pos() - doesnt increse pointer
.end() - end pointer
.list() - increase pointer
.reverse() - decrease pointer

I don´t know WebIDL, hope you can read it as and like WebIDL

Removing the Master File from the Cache

Explicitly remove like above and the cache will behave to cache it again.

Explicitly add the file to the manifest NETWORK: index.php (Variant 1,
whitelist), NETWORK: MASTER (Variant 2, whitelist parser), or CACHE MANIFEST
NOMASTER (first line).

Not caching the master file, means loading the file everytime from the
network. *New:*You can cache scripts, images, stylesheets, media, and with
the javascript enhancement you can modify the cache and load whatever the
user desires to the cache.

You can now load, what the user desires from cache.
Arguments having the functions above and the Master File cached

The user may choose, what to cache.

You may choose, what to cache.
Security considerations

Malicious Pages writing malicious caches?

Isn´t there detection for most of? Something like this is needed and the
same-/cross-origin policy already used.

I write down no new suggestions for changes to the security in this
document. It is only for the new (or remaining) Cache Functions (for HTML5).
Appendix - Caching DOM tree branches with url identifiers, and root element

Browsers COULD save parts of the dom tree with possible id in the cache,

I hope this could become discussed again. I hope the features could be set
onto the vendors to do list, by the HTML5 specification, before HTML5 is
Other documents

Programmable HTTP Caching & Serving, with an immediate function and a local
server and the applicationCache2 Interfaces.

The enhancements suggested here are easier to learn and use. By the use of
applicationCache2 in the other document, the functions here could stay in
Reason for this document.

Please let my cache my content managers, as far as i prepare the urls to be
used by my script for caching, on the users demands.

With friendly regards,

*Edward Gerhold*

With frienly regards
Edward Gerhold

More information about the whatwg mailing list