Linux 软件免费装

application-cache-plugin

开发者 moolen
更新时间 2012年11月20日 18:07
PHP版本: 3.0.1 及以上
WordPress版本: 3.4
版权: GPLv2 or later
版权网址: 版权信息

标签

plugin wordpress HTML5 application cache

下载

详情介绍:

This plugin creates a dynamic HTML5 application cache manifest for each site and blogpost of your wordpress blog. Features so far:

安装:

  1. Upload the appcache/ folder to your /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Place manifest="<?php echo site_url(); ?>/wp-content/plugins/appcache/manifest.appcache.php?appcache_id=<?php echo the_ID()."&referrer=".urlencode($_SERVER['SCRIPT_URL']); ?>" in your header.php INSIDE the html tag. It should look like this: <html manifest="...php stuff...">
  4. test it (look below in the FAQ)
  5. Thats it, but feel free to look at settings -> appcache in your admin interface. There are a few settings you can do

屏幕截图:

  • Settings for the application-cache-plugin. The current theme folder gets cached by default. You can alse exclude filetypes (default is .less .sass)
  • Appcache-plugin in action (See the events "Application Cache Caced event")

常见问题:

How to Debug / look at the appcache / Is it working?

Its easy in Google Chrome:

  • Debug by CMD+ALT+J for Javascript console.
  • You can see the events fired up by the appcache manifest. Read them carefully!
  • If you get a HTTP 404 on any link to a img: the site wont get cached.
  • type chrome://appcache-internals/ in your addressbar to look at all HTML5-Cached Sites.
  • If nothing is there be sure to look at the manifest. If any error is thrown there please send me an email with a link to the manifest.

更新日志:

1.0