HTML, JavaScript, and PHP dynamic page with cache problems in browsers

Posted on 2007-10-20
Last Modified: 2007-10-21
I need help with making IE and FF not cache my web pages. My website is dynamic, but whenever it goes to a certain page, it seems like these browsers use the cache instead of a refreshed webpage with new content. Any help would be greatly appreciated. Thanks!
Question by:jcbodyworks
    1 Comment
    LVL 13

    Accepted Solution

    Try this in your header:

    <meta name='cache-control' content='no-cache' />

    Alternately, you can use php's "header" tag as:
    header('cache-control: no-cache');

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now