Title: WP Inline Cacher
Author: ChrisBAshton
Published: <strong>2021 年 2 月 1 日</strong>
Last modified: 2021 年 2 月 1 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-inline-cacher.svg)

# WP Inline Cacher

 作者：[ChrisBAshton](https://profiles.wordpress.org/chrisbashton/)

[下载](https://downloads.wordpress.org/plugin/wp-inline-cacher.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-inline-cacher/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-inline-cacher/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-inline-cacher/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-inline-cacher/#developers)

 [支持](https://wordpress.org/support/plugin/wp-inline-cacher/)

## 描述

The inline cache methodology emphasises fast first page loads. It acts on the basis
that opening HTTP connections is slow, and that it is therefore faster for the resources
to be inlined, but that we also want to cache those resources so they don’t have
to be re-downloaded.

That’s what WP Inline Cacher does. It automatically renders your stylesheets inline
on first page load, and caches them in the background. On subsequent page loads,
the resources are no longer inlined – so your page weight is smaller – but are automatically
retrieved from cache.

See https://github.com/ChrisBAshton/inline-cache for more details.

### Contact

If you spot any issues, or want to know how to contribute, please visit https://
github.com/ChrisBAshton/wp-inline-Cacher.

Please note that I have open-sourced this plugin to give back to the community, 
and do not have much spare time to answer support queries, but I’ll help where I
can.

## 安装

 1. Install the plugin through the WordPress plugins screen directly
 2. For now, you need to manually copy the ‘js/sw.js’ file to the root of your website
    directory, and name it ‘sw-inline-cacher.js’. Or you can edit your .htaccess file:
 3. RewriteRule ^inline-cache-sw.js$ wp-content/plugins/wp-inline-cacher/js/sw.js
 4. We hope to automate this step in a future update.
 5. Activate the plugin through the ‘Plugins’ screen in WordPress

## 常见问题

### Which stylesheets does this apply to?

WP Inline Cacher will style any stylesheets that have been enqueued using `wp_enqueue_style`.

If your theme has any hard-coded link rel stylesheet tags, or hard-coded inline 
styles, then this plugin is unable to intercept them.

### Does this work for JavaScript?

Not yet, but in theory it could. Stay tuned for an updated plugin!

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP Inline Cacher」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ ChrisBAshton ](https://profiles.wordpress.org/chrisbashton/)

[帮助将「WP Inline Cacher」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-inline-cacher)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-inline-cacher/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-inline-cacher/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-inline-cacher/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-inline-cacher/)。

## 更新日志

#### 1.0

 * Initial release

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**5 年前**
 *  活跃安装数量 **不到10**
 *  已测试的最高版本为 **5.6.17**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-inline-cacher/)
 * 标签
 * [caching](https://cn.wordpress.org/plugins/tags/caching/)[Fast](https://cn.wordpress.org/plugins/tags/fast/)
   [inline](https://cn.wordpress.org/plugins/tags/inline/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
   [speed](https://cn.wordpress.org/plugins/tags/speed/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-inline-cacher/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wp-inline-cacher/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-inline-cacher/reviews/)

## 贡献者

 *   [ ChrisBAshton ](https://profiles.wordpress.org/chrisbashton/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-inline-cacher/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://twitter.com/ChrisBAshton)