Title: Awebsome Browser Selector for CACHING
Author: James Revillini
Published: <strong>11 April 2013</strong>
Last modified: 12 April 2013

---

Search plugins

This plugin **hasn’t been tested with the latest three major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/awebsome-browser-selector-for-caching.
svg)

# Awebsome Browser Selector for CACHING

 By [James Revillini](https://profiles.wordpress.org/jrevillini/)

[Download](https://downloads.wordpress.org/plugin/awebsome-browser-selector-for-caching.1.0.2.zip)

 * [Details](https://en-gb.wordpress.org/plugins/awebsome-browser-selector-for-caching/#description)
 * [Reviews](https://en-gb.wordpress.org/plugins/awebsome-browser-selector-for-caching/#reviews)
 *  [Installation](https://en-gb.wordpress.org/plugins/awebsome-browser-selector-for-caching/#installation)
 * [Development](https://en-gb.wordpress.org/plugins/awebsome-browser-selector-for-caching/#developers)

 [Support](https://wordpress.org/support/plugin/awebsome-browser-selector-for-caching/)

## Description

#### 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](http://wp.me/Pioil-Rs)

## Installation

 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.

## FAQ

  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'))})();`

## Reviews

There are no reviews for this plugin.

## Contributors and Developers

“Awebsome Browser Selector for CACHING” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ James Revillini ](https://profiles.wordpress.org/jrevillini/)

[Translate “Awebsome Browser Selector for CACHING” into your language.](https://translate.wordpress.org/projects/wp-plugins/awebsome-browser-selector-for-caching)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/awebsome-browser-selector-for-caching/),
check out the [SVN repository](https://plugins.svn.wordpress.org/awebsome-browser-selector-for-caching/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/awebsome-browser-selector-for-caching/)
by [RSS](https://plugins.trac.wordpress.org/log/awebsome-browser-selector-for-caching/?limit=100&mode=stop_on_copy&format=rss).

## Change Log

= 1.0.2
 * BUGFIX http/https select for ajax call for browser classes

#### 1.0.1

 * removed a debugging function I accidentally left outside the class scope

#### 1.0

 * Initial release

## Meta

 *  Version **1.0.2**
 *  Last updated **14 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.5.1 or higher **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/awebsome-browser-selector-for-caching/)
 * Tags
 * [browser](https://en-gb.wordpress.org/plugins/tags/browser/)[caching](https://en-gb.wordpress.org/plugins/tags/caching/)
   [css](https://en-gb.wordpress.org/plugins/tags/css/)[sniffer](https://en-gb.wordpress.org/plugins/tags/sniffer/)
   [user agent](https://en-gb.wordpress.org/plugins/tags/user-agent/)
 *  [Advanced View](https://en-gb.wordpress.org/plugins/awebsome-browser-selector-for-caching/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/awebsome-browser-selector-for-caching/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/awebsome-browser-selector-for-caching/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/awebsome-browser-selector-for-caching/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/awebsome-browser-selector-for-caching/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/awebsome-browser-selector-for-caching/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/awebsome-browser-selector-for-caching/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/awebsome-browser-selector-for-caching/reviews/)

## Contributors

 *   [ James Revillini ](https://profiles.wordpress.org/jrevillini/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/awebsome-browser-selector-for-caching/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QBHP7AUYRQ5S2)