PHP Tips and Information

Firefox 3 Cache Doesn't Follow "no-cache" Command

Even after "no-cache" meta Firefox 3 is still keeping old pictures in its cache.

A script for a client had photos and content change everytime you went back to a page, but unfortunately the original photo was caught in the cache in Firefox 3. However, it should have worked fine using the two meta commands below in the header of the page.

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

For anyone else running into this same situation I found a solution that I added in with the other two tags.

<?php header("Pragma: no-cache"); ?>

I am not quite sure why Firefox needs it this way, but it fixed the problem for my client.


Need Help? We Offer Complete Web Design and Programming Services

From start to finish, we will assist you in developing a web site, that will conform to your business and individual requirements, and most importantly, generate sales and grow your business. We will also help you to understand the web design process, and supply you with all the information you need to make informed decisions. Please call us toll free with any design or development questions you may have. We offer professional work to give you professional level results.

Whether you're looking for a new web site or just want to upgrade your existing one, you've come to the right place. We can handle everything from web design, e-commerce, PHP, custom scripting, Flash, databases and email. We'll even write or edit all your web site content for you. Then, we can also handle all your web hosting, and domain name needs if you need it. Fencl Web Design truly is your one stop shop for a new web site.