i'm trying to solve the still unsolved problem that when using any caching plugin, the following line from the header gets cached too :
<html lang="en-US" prefix="og: http://ogp.me/ns#" class="safari safari6 html_boxed responsive ">
, serving safari pages to IE and any other combination of browsers, based on the first user to visit the page after caches are cleared (or rebuilt).
i've tried putting the code that detects the browser in a separte file, called browser.php. this is called from the header with :
<?PHP
echo file_get_contents('browser.php');
code in browser.php :
<?php
global $avia_config;
if (function_exists('avia_get_browser')) {
echo avia_get_browser('class', true);
}
else {
echo "NO-WORKY";
}














