Website Cache-Clearing Issue

Tech questions of any kind can be asked here.
Forum rules
Forum Specific Rules
So you got questions about audio/video? Wanna know how to rip a digital stream? Make an X/S/VCD to play on your DVD player? Maybe rip a video from VHS or TV? Find the answers here.
User avatar
cfmoran
Broken, Beat, but not scarred
Posts: 549
Joined: Tue Feb 17, 2009 2:33 pm
Location: Morris Plains, NJ, USA
Country: United States

Website Cache-Clearing Issue

Post by cfmoran »

I've recently almost completed adding back the .png image files to my site for all the bands I've collected. The only problem is I think the volume of images on the page creating an issue. In speaking with GoDaddy who does my hosting, they think it is an issue where the cache needs to be cleared out. I was told to look for a cache-clearing PHP script or add-on to fix it. I did some digging and I think I found a script to add to my PHP that could possibly fix it. I just don't know where to add it. The script is below:

<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Pragma: no-cache');
?>

Does anyone know where I should put it? Better yet, does this look like it'll do the trick? I wish I'd learned more about coding and such. This is probably really easy sh*t for someone who's done it before.

Thanks!

Craig
"Battery Is Here To Stay!"

Feel like trading? Visit My DVD Trading Page