[WordPress] 外掛分享: Awebsome Browser Selector for CACHING

首頁外掛目錄 › Awebsome Browser Selector for CACHING
10+
安裝啟用
★★★★★
5/5 分(2 則評價)
4724 天前
最後更新
問題解決
WordPress 3.5.1+ v1.0.2 上架:2013-04-10

內容簡介

簡單易懂的概述

如果您使用了 Awebsome!Broswer Selector 套件 以及快取套件 (例如WP SuperCache),錯誤的 body classes 會被提供給您的用戶端並可能導致您的網站渲染錯誤。此外掛程式能克服 Awebsome!Broswer Selector 套件的限制!

技術細節

ABS透過 WordPress 的Hook向body添加class,這對於快取的網站是一個問題,因為您不希望這些class被快取並提供給其他用戶端,因為它們是不正確的(例如 Mozilla Firefox 的用戶可能會獲得使用Safari的body class)。 結果可能會從渲染網站錯誤到錯誤的代碼執行。此外掛程式通過JavaScript和AJAX(利用jQuery)利用ABS的一些功能,能夠動態生成準確的類並在每個頁面加入body類屬性。

請注意

您必須與ABS 2.2或更高版本一起安裝此外掛程式。

Awebsome! Broswer Selector for Caching Plugin Page

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Awebsome Browser Selector for CACHING」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon