[wordpress插件] Awebsome Browser Selector for CACHING用于缓存的网络浏览器选择器

wordpress 插件 文章 2020-02-26 15:00 611 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Quick, Non-technical Overview

快速,非技术性概述

If you use the Awebsome!

如果您使用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.

Broswer Selector插件和缓存插件(例如WP SuperCache),将错误的主体类提供给您的网站访问者,并可能导致您的网站呈现错误。

This plugin overcomes that limitation of ABS!

该插件克服了ABS的局限性!

Technical Details

技术细节

ABS adds classes to the body of your site using WordPress hooks;

ABS使用WordPress挂钩将类添加到您的网站正文中;

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).

这是缓存网站的问题,因为您不希望这些类被缓存并提供给其他客户端,因为它们将是不准确的(例如,Mozilla Firefox用户可能会获得一个包含表示他们使用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).

该插件利用ABS的某些功能在每次页面加载时动态地动态生成准确的类,并使用JavaScript和AJAX(利用jQuery)将它们添加到body类属性中。

Please Note

请注意

This plugin must be installed in conjunction with ABS 2.2 or higher.

此插件必须与ABS 2.2或更高版本一起安装。

Awebsome!

令人讨厌!

Broswer Selector for Caching Plugin Page

用于缓存插件页面的Broswer选择器

安装步骤

    1. Install the plugin from your wordpress plugin manager or upload the plugin ZIP file to the plugin manager.
    2. 从您的wordpress插件管理器中安装插件,或将插件ZIP文件上传到插件管理器。

    3. Activate the plugin.
    4. 激活插件。

    5. Recommended: Clear your WordPress cache;

    6. 推荐:清除您的WordPress缓存;

      follow your caching plugin’s documentation for instructions on how to do this.

    7. 请按照您的缓存插件的文档中的操作说明进行操作。

下载地址
https://downloads.wordpress.org/plugin/awebsome-browser-selector-for-caching.1.0.2.zip
-EOF-

AI助手支持GPT4.0