How to Disable Image Caching
Browser caching is useful. It lets you load pages faster by storing cache-able files on your computer. If you have a slower internet connection, this will most likely be helpful to you.
However, the problem arises if you a programmer that needs images to be fresh. I've recently creating a image manipulation program and needed to the images NOT to cache. Here's a trick to do this:
<img src="uploads/images/your_image.jpg?dummy_variable=<?php echo time()?>" />That's it. Very simple but very useful.
Categories: How To
No Comments

