update AI engines
[uweb.git] / en / offlinecache / index.html
blobc34414f4523828320631b6cffb8e5653841e576e
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
6 <link rel="canonical" href="https://jamesfengcao.gitlab.io/uweb/en/offlinecache/" />
8 <link rel="stylesheet" href="../style.css#" type="text/css" />
9 <title>Offline resources</title>
10 <script>
11 function findLang(){
12 let href = location.href;
13 for(let i=href.length-1;i>0;i--){
14 if('/'==href.charAt(i) && '/'==href.charAt(i-3))
15 return i;
17 return 0;
19 function nav2(page){
20 let i = findLang();
21 location.href = location.href.substring(0,i+1)+page;
23 function nav2Lang(lang){
24 let i = findLang();
25 let href = location.href;
26 location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
28 </script>
29 </head>
30 <body>
31 <header class='header'>
32 <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">Tags</a>
35 <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('zh')">简体中文</a>
38 <nav>
39 </nav>
40 </header>
41 <br />
43 <div class="container">
44 <h1 class="title">Offline resources
45 <br>
46 <span class="subtitle"></span>
47 </h1>
48 <ul class="tags">
50 </ul>
51 <p>Offline resources locate in the folder &quot;sitecache&quot;. With the option &quot;use offline resources&quot; enabled, the corresponding files in &quot;sitecache/[domain name]/[full path including filename, the url path part]&quot; are loaded first before reaching the network.</p>
52 <h4 id="serverless-local-sites">Serverless local sites</h4>
53 <p><a href="i:01Extract webapp:i:0bsitecache/local/:">Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;</a>: support web extensions (.crx for chrome &amp; .xpi for firefox).</p>
54 <p>Any folder under &quot;sitecache&quot; can be visited as a local site. Urls with search queries can be dynamically processed by the js/wasm code in the local file.</p>
55 <p>PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp; .xpi for firefox) are just packaged websites. Ex. the &quot;kiwix&quot; extension can be extracted to the folder &quot;sitecache/local/kiwix&quot;<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup>, then the kiwix extension can be accessed via url &quot;https://local/kiwix/www/index.html#&quot; in the browser.</p>
56 <div class="footnotes" role="doc-endnotes">
57 <hr>
58 <ol>
59 <li id="fn:1">
60 <p>the folder name &quot;local&quot; is used as the domain name in the url.&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
61 </li>
62 </ol>
63 </div>
65 </div>
66 <p>Last Modified: 8 April 2024<br>
67 fix typos<br>
68 <pre></pre>
69 </p>
71 <script id='jsgiscus'
72 src='https://giscus.app/client.js'
73 data-repo="torappinfo/uweb"
74 data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
75 data-category="Announcements"
76 data-category-id="DIC_kwDOEgNLGc4CQjsh"
77 data-mapping="title"
78 data-strict="0"
79 data-reactions-enabled="1"
80 data-emit-metadata="0"
81 data-input-position="top"
82 data-theme="light"
83 data-lang="en"
84 data-loading="lazy"
85 crossorigin="anonymous" async>
86 </script>
88 <footer class="site-footer">
89 <div class="container">
90 &copy; 2018-2025 Richard H. Cao
91 </div>
92 </footer>
93 <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
96 </body>
97 </html>