Do not use code like:
$IE_LE_SIX = stristr($_SERVER[’HTTP_USER_AGENT’], ’MSIE 6’) || stristr($_SERVER[’HTTP_USER_AGENT’], ’MSIE 5’);
if ( $IE_LE_SIX ) {
/*do something*/
} else {
/*do something else*/
}
in your cached snippets
Try to find a javascript solution or an uncached snippet.
-
MODX Staff
- 10,725 Posts
Good tip xpix. This is why MODx supports partial page caching, so you can design a cache strategy that maximizes efficiency where changes are infrequent, while allowing non-cacheable snippets to execute and render output dynamically.