Forums | Email a Colleague | FAQ

Dr. Website Archives

Dr. Website® Archives 2002

October 03, 2002
    Question:
    Dear Dr. Website: I've run into a problem several times, and am not sure if a meta tag will help.

    On occasion, if a client views a page after I've updated information, the updated information is not always visible to them. In the past, I've advised them to hit the refresh button on their browser for the latest page to load.

    That seems to alleviate their initial concern, but I'm unsure how I'll answer them when they ask, "do my customers need to refresh their browser too?".

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office">

    /I've done some reading about meta tags, and feel that's the way I should be headed; although I can't seem to locate the correct tag to use. I think I would want the browser to look for a newer version of the page before it loads what it has in it's cache, right??? I feel that "refresh" and "reload" tags don't do quite what I'm after.

    What would you suggest?
    Thank You

    Answer:
    You're headed in the right direction. The meta tags you're looking for are:

    <META http-equiv="Expires" content="Tue, 01 Jun 1999 19:58:02 GMT">

    or simply:

    <meta http-equiv="Expires" content="0">

    as well as:

    <META HTTP-EQUIV="pragma" CONTENT="no-cache">

    which tells the browser not to cache the page at all.
    Thanks

    --Dr.Website

    Question:
    Dear Dr. Website:
    I would like to add a re-direct to one of our web pages, and have successfully done so, but when the user clicks on the back button....the page only reloads as the redirect continually directs them to that page.

    How can I get the users to the page they came from?

    Answer:
    One way to avoid the problem you're encountering is to use a link which takes the user back to the original page. You can use a hard coded link to the specific page, or use the history() function to do it. To use the history() function, you'd do something like this:

    <A HREF="javascript:history.go(-1)">move back</A>

    You could also redirect the page from the server level (you or your host should be able to enable redirects for specific pages). Then it would act like any other direct link, and visitors would be able to just use their back button.
    Thanks

    --Dr.Website ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ForumsEmail a Colleague · FAQ



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES