IE6 Fixing: Beating the cache with PHP
Yeah everyone knows IE6 testing/fixing is lame. But the worst part about it by far is not being able to test because IE6 caching is beyond retarded, and doesn’t re-cache, like ever.
This is my method for IE testing websites:
<?php if($_GET['ie']) { ?>
<link rel="stylesheet" href="/css/ie.css
?cachebust<?=time()?>=true"
type="text/css" media="all">
<?php } ?>
This way, as long as you call your page with ?ie=true on the end, you’ll get a non-cached CSS file everytime, no matter what. Life saver for me.
Loading...
