5 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
6 <link rel=
"canonical" href=
"https://jamesfengcao.gitlab.io/uweb/zh/offlinecache/" />
8 <link rel=
"stylesheet" href=
"../style.css#" type=
"text/css" />
9 <title>装载网站离线资源
</title>
12 let href
= location
.href
;
13 for(let i
=href
.length
-1;i
>0;i
--){
14 if('/'==href
.charAt(i
) && '/'==href
.charAt(i
-3))
21 location
.href
= location
.href
.substring(0,i
+1)+page
;
23 function nav2Lang(lang
){
25 let href
= location
.href
;
26 location
.href
= location
.href
.substring(0,i
-2)+lang
+location
.href
.substring(i
);
31 <header class='header'
>
32 <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2('index.html#')">首页
</a> <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2('tags/index.html#')">标签
</a>
35 <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2Lang('en')">English
</a>
43 <div class=
"container">
44 <h1 class=
"title">装载网站离线资源
46 <span class=
"subtitle"></span>
51 <p><a href=
"..">uweb浏览器
</a>支持装载网站离线资源。只需要将离线资源存为文件
"sitecache/[域名]/[全部路径,包括文件名,url中的路径部分]
"。
<br>
52 打开选项
"使用离线资源
"以后超微将自动装载这些离线资源。
</p>
53 <p>离线资源可作为缓存提高浏览器性能; 可作为国外网站部分备份修复服务访问; 也可替换部分网站资源达到定制网站的作用。
</p>
56 <p>Last Modified:
2 April
2024<br>
57 generate PDF for custom paper size
<br>
62 src='https://giscus.app/client.js'
63 data-repo=
"torappinfo/uweb"
64 data-repo-id=
"MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
65 data-category=
"Announcements"
66 data-category-id=
"DIC_kwDOEgNLGc4CQjsh"
69 data-reactions-enabled=
"1"
70 data-emit-metadata=
"0"
71 data-input-position=
"top"
75 crossorigin=
"anonymous" async
>
78 <footer class=
"site-footer">
79 <div class=
"container">
80 © 2018-
2025 Richard H. Cao
83 <!-- 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/>. -->