diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
| commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
| tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/fr/web/api/sharedworkerglobalscope/applicationcache | |
| parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
| download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip | |
initial commit
Diffstat (limited to 'files/fr/web/api/sharedworkerglobalscope/applicationcache')
| -rw-r--r-- | files/fr/web/api/sharedworkerglobalscope/applicationcache/index.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/files/fr/web/api/sharedworkerglobalscope/applicationcache/index.html b/files/fr/web/api/sharedworkerglobalscope/applicationcache/index.html new file mode 100644 index 0000000000..1d2fde68f1 --- /dev/null +++ b/files/fr/web/api/sharedworkerglobalscope/applicationcache/index.html @@ -0,0 +1,38 @@ +--- +title: SharedWorkerGlobalScope.applicationCache +slug: Web/API/SharedWorkerGlobalScope/applicationCache +translation_of: Web/API/SharedWorkerGlobalScope/applicationCache +--- +<div>{{APIRef("Web Workers API")}}</div> + +<div class="warning"> +<p><strong>Important</strong>: Application Cache est déprécié depuis Firefox 44, et ne sera plus disponible dans des contextes non sécurisés avant Firefox 60 ({{bug(1354175)}}, currently uniquement sur les versions Nightly/Beta). Ne pas utiliser cette fonctionnalité sur des sites web en production, utilisez plutôt les <a href="/fr/docs/Web/API/Service_Worker_API">services workers.</a></p> +</div> + +<p>La propriété en lecture seule <code><strong>applicationCache</strong></code> de l'interface {{domxref("SharedWorkerGlobalScope")}} retourne l'objet {{domxref("ApplicationCache")}} pour le <em>worker</em> (voir <a href="/fr/docs/Web/HTML/Using_the_application_cache">Utiliser le cache d'application</a>).</p> + +<h2 id="Syntaxe">Syntaxe</h2> + +<pre class="brush: js">var nameObj = self.applicationCache;</pre> + +<h3 id="valeur">valeur</h3> + +<p>Un {{domxref("ApplicationCache")}}.</p> + +<h2 id="Exemple">Exemple</h2> + +<p>Si un <em>worker</em> partagé a un AppCache, vous pouvez récupérer une référence en utilisant à l'intérieur d'un <em>worker</em> partagé:</p> + +<pre class="brush: js">self.applicationCache</pre> + +<h2 id="Browser_Compatibility" name="Browser_Compatibility">Compatibilité des navigateurs</h2> + + + +<p>{{Compat("api.SharedWorkerGlobalScope.applicationCache")}}</p> + +<h2 id="Voir_aussi">Voir aussi</h2> + +<ul> + <li>{{domxref("SharedWorkerGlobalScope")}}</li> +</ul> |
