This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20084 - appcache: add/remove specific files from JS
Summary: appcache: add/remove specific files from JS
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Needs Impl Interest
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
: 10263 11548 17974 21297 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-26 02:44 UTC by Ian 'Hixie' Hickson
Modified: 2014-12-02 15:40 UTC (History)
13 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2012-11-26 02:44:21 UTC
Bug 17974 note 4's use case seems best handled by adding a simple API to applicationCache for adding and removing extra files:

   applicationCache.addExtra(url);
   applicationCache.removeExtra(url);
   applicationCache.getExtras(function (files) { ... });

...where the callback to getExtras() gets an array of URLs.
Comment 1 Ian 'Hixie' Hickson 2012-11-26 02:45:01 UTC
*** Bug 17974 has been marked as a duplicate of this bug. ***
Comment 2 Ian 'Hixie' Hickson 2013-03-18 19:46:34 UTC
*** Bug 11548 has been marked as a duplicate of this bug. ***
Comment 3 Ian 'Hixie' Hickson 2013-03-19 22:38:42 UTC
*** Bug 10263 has been marked as a duplicate of this bug. ***
Comment 4 Ian 'Hixie' Hickson 2013-04-13 16:19:58 UTC
*** Bug 21297 has been marked as a duplicate of this bug. ***
Comment 5 francisco alejandro viana canizalez 2013-05-26 00:10:28 UTC
Not Found

The requested URL /bugzilla_public/docs/en/html/query.html was not found on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

siempre llego a algo parecido a esto de arriba.

el problema fue creado por los señores que iniciaron las organizaciones que autorizan las asignaciones de identificadores especificos de usuarios en internet. todo esto en acuerdo comun con los servidores de internet locales, gobierno y todo lo que conecta, en el manejo de servicios que se relacionan; que han armado un bloqueo, que todo mundo conoce; y que los arbitros estan a favor de ellos.
Comment 6 Calvin Spealman 2013-08-31 12:07:24 UTC
The proposed API addExtra() etc reflects an intention that may not pan out in actual use: That this would be used for secondary resources, not primary cached assets. The fact may be that for many applications, an API like this would be the primary way to define the cache. In fact, they may define no manifest at all and ONLY define resources on the fly.

The language of the methods should reflect that with a term other than "extra".

Also, this fails to provide a way to introspect the non-dynamically added resources, which may also be useful. "What assets does my current cache provide me?" code might want to ask.
Comment 7 Ian 'Hixie' Hickson 2014-07-25 20:43:01 UTC
This is probably going to end up handled by ServiceWorkers instead.
Comment 8 Tobias Braun 2014-09-07 14:21:36 UTC
(In reply to francisco alejandro viana canizalez from comment #5)
> Not Found
> 
> The requested URL /bugzilla_public/docs/en/html/query.html was not found on
> this server.
> 
> Additionally, a 403 Forbidden error was encountered while trying to use an
> ErrorDocument to handle the request.
> 
> siempre llego a algo parecido a esto de arriba.
> 
> el problema fue creado por los señores que iniciaron las organizaciones que
> autorizan las asignaciones de identificadores especificos de usuarios en
> internet. todo esto en acuerdo comun con los servidores de internet locales,
> gobierno y todo lo que conecta, en el manejo de servicios que se relacionan;
> que han armado un bloqueo, que todo mundo conoce; y que los arbitros estan a
> favor de ellos.
Comment 9 Ian 'Hixie' Hickson 2014-09-08 16:40:33 UTC
I'm punting on this. ServiceWorkers are going to do this.