Linux 软件免费装

Plugin Name

开发者 jrevillini
更新时间 2013年4月12日 23:24
捐献地址: 去捐款
PHP版本: 3.5.1 及以上
WordPress版本: 3.5.1
版权: GPLv2 or later
版权网址: 版权信息

标签

caching cache css browser user agent sniffer

下载

1.0 1.0.2

详情介绍:

Quick, Non-technical Overview If you use the Awebsome! Broswer Selector plugin AND a caching plugin (e.g. WP SuperCache), the wrong body classes will be served to your site visitors and could cause your site to render incorrectly. This plugin overcomes that limitation of ABS! Technical Details ABS adds classes to the body of your site using Wordpress hooks; this is a problem for caching sites because you do not want those classes cached and served to other clients as they will be inaccurate (e.g. a Mozilla Firefox user could get served a page with body classes that indicate that they use Safari). The result can range from rendering your site incorrectly to the wrong code being executed. This plugin leverages some of the functionality of ABS to generate accurate classes dynamically on every page load and add them to the body class attribute using JavaScript and AJAX (leverages jQuery). Please Note This plugin must be installed in conjunction with ABS 2.2 or higher. Awebsome! Broswer Selector for Caching Plugin Page

安装:

  1. Install the plugin from your wordpress plugin manager or upload the plugin ZIP file to the plugin manager.
  2. Activate the plugin.
  3. Recommended: Clear your Wordpress cache; follow your caching plugin's documentation for instructions on how to do this.

常见问题:

How do I know it's working?

Inspect the classes applied to the body tag and make sure you see 'awebsome-bs-for-caching' in there somewhere. There are several ways to do this:

  • JavaScript URL bar method - while on your site, in the address bar, paste this code and hit return: javascript:(function(){alert(document.getElementsByTagName('body')[0].getAttribute('class'))})();void(0);
  • JavaScript Console method - paste this into the JS console and hit return: (function(){alert(document.getElementsByTagName('body')[0].getAttribute('class'))})();

更新日志:

= 1.0.2 1.0.1 1.0