Title: Offline Content
Author: delapuente
Published: <strong>2016 年 2 月 10 日</strong>
Last modified: 2016 年 4 月 16 日

---

搜尋外掛

![](https://ps.w.org/offline-content/assets/banner-772x250.png?rev=1366488)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/offline-content/assets/icon-256x256.png?rev=1366488)

# Offline Content

 由 [delapuente](https://profiles.wordpress.org/delapuente/) 開發

[下載](https://downloads.wordpress.org/plugin/offline-content.0.6.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/offline-content/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/offline-content/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/offline-content/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/offline-content/#developers)

 [技術支援](https://wordpress.org/support/plugin/offline-content/)

## 外掛說明

This plugin uses new [ServiceWorker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API)
and [Cache API](https://developer.mozilla.org/en-US/docs/Web/API/Cache) to allow
your users to access the contents of your site while they are offline or under unreliable
network situations by caching part of your site.

Once you’ve installed this plugin, anyone visiting your site in [browsers that support the Service Workers API](http://caniuse.com/#feat=serviceworkers)
will be able of access your content even if they run out of network or experiment
network instability.

Configure the plugin in the “Settings > Offline content” section of your WordPress
dashboard.

## 安裝方式

 1. Download and install the plugin from the WordPress.org plugin directory
 2. Activate the plugin through the “Plugins” menu in WordPress Dashboard.

Alternatively,

 1. Clone or download the project repository
 2. Copy `wp-offline-content` directory inside your WordPress installation plugins 
    directory
 3. Enable the plugin from the admin panel

## 常見問題集

  What browsers support the W3C Service Workers API?

[Browser support for the W3C Service Worker API](http://caniuse.com/#feat=serviceworkers)
currently exists in Firefox, Chrome, and Chrome for Android, with other likely to
follow.

  What is the default policy for caching content?

The plugin will try to always serve fresh content from the Internet. After visiting
a post or a page, the content will be cached in the background. In case of an unreliable
network or lack of connectivity, the plugin will serve the cached content.

  Can I use the plugin in combination with other plugins using SW

Since version 0.2.0, you can use this plugin in combination with other using the
[WordPress Service Worker Manager library](https://github.com/mozilla/wp-sw-manager/blob/master/README.md).

  Can I configure which content is available for offline reading?

In a very limited way, yes. You can enable/disable if pages should be precached 
is such a way the will be availables by the user even if they were never visited
before.

More options will be available with new versions of the plugin.

## 使用者評論

![](https://secure.gravatar.com/avatar/fd3fd43f1ba928bf347315b99fff1d93c064f26e416b32e49e44d0c216ea10a8?
s=60&d=retro&r=g)

### 󠀁[goodone](https://wordpress.org/support/topic/goodone-2/)󠁿

 [suffics](https://profiles.wordpress.org/suffics/) 2018 年 2 月 22 日

helps in web apps

![](https://secure.gravatar.com/avatar/5c412fcb78876cab2f1ad90b8b8e70223e07c5f7e68108285837d6f77c11b749?
s=60&d=retro&r=g)

### 󠀁[I use and work perfectly!](https://wordpress.org/support/topic/i-use-and-work-perfectly/)󠁿

 [jramoscarmenates](https://profiles.wordpress.org/jramoscarmenates/) 2018 年 2 
月 8 日

Thanks.

![](https://secure.gravatar.com/avatar/4c76d9f6d43ca0d7f8b1f74e5f9574b3068c222281ed6e56a679049c7e7f37e0?
s=60&d=retro&r=g)

### 󠀁[非常棒👍](https://wordpress.org/support/topic/%e9%9d%9e%e5%b8%b8%e6%a3%92%f0%9f%91%8d/)󠁿

 [zengxiaoluan](https://profiles.wordpress.org/zengxiaoluan/) 2018 年 1 月 2 日

很酷，但是为什么这么久没有更新呢，我决定要贡献一些代码。

![](https://secure.gravatar.com/avatar/a1d21769c6d0ddd960f0b2bacd99e6f2e24a9b623b4c33df1043c404bbc4df7d?
s=60&d=retro&r=g)

### 󠀁[Actually works](https://wordpress.org/support/topic/actually-works-7/)󠁿

 [philippenantes](https://profiles.wordpress.org/philippenantes/) 2017 年 9 月 23
日

Does what is says, now my wordpress based PWA will 100% pass lighthouse PWA audit
in Chrome DevTools. Amazing work, kudos on this guys.

![](https://secure.gravatar.com/avatar/80e22fab77f951c2bca7ea901cf8394676084e9479de117ab9df2629d5f0fa2a?
s=60&d=retro&r=g)

### 󠀁[progressive web app PWA](https://wordpress.org/support/topic/progressive-web-app-pwa/)󠁿

 [0001](https://profiles.wordpress.org/0001-1/) 2017 年 7 月 7 日

best way to turn your simple wp instal into a pwa.. im really grateful for the developers..
thank you! i wish some feature request… would be nice an update couse since last
year this api evolved.. maybe ability to : 1.set background sync.. 2.ability to 
chose betven a race the request whatever return faster serv that… or: to chose chase
only or server only or server first or case first..then update in background .. 
this settings would be nice… also maybe we could declare what is to be chased.. 
in case i want someting specific what wasn’t cased before.. or: pre render pages…
so on.. this plugin so exiting has soo much potential.. just need a bit more developing
maybe.. or just make a new plugin doing the same with more option .. se we could
have a bare minimal .. and one with the extra settings.. depend on what ewer people
usecase better.. i really wish somebody out there developer read this and soon we
get an update.. but in the mean time… again thank you guys really apprichite your
work.!! peace rg

 [ 閱讀全部 5 則使用者評論 ](https://wordpress.org/support/plugin/offline-content/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Offline Content〉的開發相關工作。

參與者

 *   [ delapuente ](https://profiles.wordpress.org/delapuente/)
 *   [ Mozilla Web Apps ](https://profiles.wordpress.org/mozillawebapps/)

〈Offline Content〉外掛目前已有 2 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/offline-content/contributors)
為這個外掛做出的貢獻。

[將〈Offline Content〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/offline-content)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/offline-content/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/offline-content/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/offline-content/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/offline-content/)。

## 變更記錄

#### 0.6.1

Includes latest Service Worker Manager which fixes a problem unregistering the service
worker when all plugins using it are disabled.

#### 0.6.0

The Service Worker unregister itself when no plugin using service workers is enabled.

Use WordPress AJAX infrastructure for dynamically generating the service worker 
file while reducing server footprint. Use [WP_Serve_File](http://github.com/marco-c/wp_serve_file)
to efficiently generate the registrar and avoid unnecessary WordPress loads. Relying
on composer’s autoload to manage plugin dependencies.

#### 0.5.0

Prevent undesired updates when used with other service worker supported plugins 
for WordPress.

#### 0.4.0

New smart update algorithm minifies the number of background downloads when adding
new content.

#### 0.3.0

Cleaning old caches when changing the name of the cache where offline content is
stored.

#### 0.2.0

Now can be combined with other WP plugins using the [WordPress Service Worker Manager library](https://github.com/mozilla/wp-sw-manager/blob/master/README.md)
such as [Web Push](https://wordpress.org/plugins/web-push/).

#### 0.1.0

Initial release.

## 中繼資料

 *  版本 **0.6.1**
 *  最後更新 **10 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 3.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.5.33**
 *  語言
 * [Dutch](https://nl.wordpress.org/plugins/offline-content/)、[English (UK)](https://en-gb.wordpress.org/plugins/offline-content/)、
   及 [English (US)](https://wordpress.org/plugins/offline-content/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/offline-content)
 * 標籤:
 * [offline](https://tw.wordpress.org/plugins/tags/offline/)[read later](https://tw.wordpress.org/plugins/tags/read-later/)
   [service-workers.](https://tw.wordpress.org/plugins/tags/service-workers/)[workers](https://tw.wordpress.org/plugins/tags/workers/)
 *  [進階檢視](https://tw.wordpress.org/plugins/offline-content/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  5 個 5 星使用者評論     ](https://wordpress.org/support/plugin/offline-content/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/offline-content/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/offline-content/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/offline-content/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/offline-content/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/offline-content/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/offline-content/reviews/)

## 參與者

 *   [ delapuente ](https://profiles.wordpress.org/delapuente/)
 *   [ Mozilla Web Apps ](https://profiles.wordpress.org/mozillawebapps/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/offline-content/)