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.

Get It

Download the latest Awebsome! Browser Selector for Caching

History

Due to some limitations of my theme, I needed to adjust the padding in my menu items differently for different browsers. Awebsome! Browser Selector allowed me to write browser-specific CSS that addressed the issues, but it did not work correctly when I enabled caching. Originally, my code had been wrapped into the main plugin, but it was removed for some reason, so I decided to make this a plugin add-on.

Disclaimer

Even though I’m calling this version 1.0, it’s never been used anywhere except my site, so you can try at your own risk. At worst, it just might not work and you might have to disable it. It doesn’t modify your database or any nonsense like that.

Support

Support will be limited to what I have time to handle. You can leave general comments here (stuff like “hey, good shit, man”), but if you need a response, use the WordPress.org support forum for the plugin.

Donations Accepted

Hell yeah you can donate.

3 thoughts on “Awebsome Browser Selector for Caching

  1. Hi James,

    I’m Andrew from WebHostingHub. We are doing Spanish translations of useful plugins in order to ease the people from Hispanic community and we consider that your Awebsome Browser Selector for CACHING plugin that we found at http://143.95.39.52/~james/awebsome-browser-selector-for-caching/ is very interesting.

    Would it be ok with you, if I translate it into Spanish?
    You can reply me directly by email.

    I hope I’ll hear from you soon.

    Kind regards

    Andrew Kurtis
    WebHostingHub

  2. Hello James,

    Week ago I have asked for your permission to translate your Awebsome Browser Selector for CACHING plugin in Spanish and I didn’t hear any from you since. I hope that you will find time to provide the reply, because we believe that the translation would be of a great use.

    All the best,
    Andrew Kurtis
    WebHostingHub

  3. Sorry I didn’t respond sooner. Yes, let’s do that. Do you want to send the package to me or do you want SVN access?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">