Bandit Design » Our Design Our Portfolio Contact Us
Tutorials TumbleLog Our Thoughts
Quite often at Bandit Design while we're working on your project, we'll stumble upon interesting or humourous things -- so we thought why not share them with the world!
RSS iPhone Random Archive « Home

Bandit Design

This is a TumbleLog authored at the desks of Bandit Design. We're a small web and graphic design studio based in Wellington, New Zealand.

Visit Bandit Design ยป

2 years ago

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...