Results 1 to 6 of 6
  1. #1
    Jaiem's Avatar
    Jaiem is offline Web Host Directory
    Community Moderator
    Join Date
    Nov 2000
    Location
    New York, USA
    Posts
    726

    How can I force a cache refresh?

    Is there anyway with HTML, META or JavaScript to force the visitor's browser to refresh the cache each time the page is viewed?

    Thanks!
    Ocean View Host
    Affordable web hosting and E-commerce solutions for any size business.
    U.S. Merchant Systems
    Accept credit cards and grow your business!

    ....................
    Community Moderator - Web Host Directory

  2. #2
    Tommy's Avatar
    Tommy is offline Web Hosting
    Community Advisor
    Join Date
    Mar 2001
    Location
    UK
    Posts
    783
    META HTTP-EQUIV=Pragme CONTENT=no-cache

    will get the browser to download the page as it instructs the browser to ignore what it might have in it's cache.

    I know you can force a refresh to cache in ASP.

  3. #3
    Jaiem's Avatar
    Jaiem is offline Web Host Directory
    Community Moderator
    Join Date
    Nov 2000
    Location
    New York, USA
    Posts
    726
    Thanks Tommy.

    But are you sure that's the right syntax?

    I've seen it listed differently such as:

    <meta http-equiv="pragma" content="nocache">
    Ocean View Host
    Affordable web hosting and E-commerce solutions for any size business.
    U.S. Merchant Systems
    Accept credit cards and grow your business!

    ....................
    Community Moderator - Web Host Directory

  4. #4
    Tommy's Avatar
    Tommy is offline Web Hosting
    Community Advisor
    Join Date
    Mar 2001
    Location
    UK
    Posts
    783
    Hi Jaiem,

    No, I'm not sure I've got it spot on. Your example looks much more like how it should be. I did look it up so I would get it right but I couldn't find it/didn't try hard enough

    Infact there has been a cycle over the last four years now, every few months I have to look it up again because I just can't remeber the exact syntax.

    You can also play with the cache settings on the server to try and make sure visitors always download the latest page.

  5. #5
    Join Date
    Aug 2001
    Posts
    10
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Pragma-directive" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Directive" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">

    If you have the ability to use any scripting language (PHP/ASP/CF/etc.) one of the most effective things you can do is implement a "cache-killer" by appending a variable (i.e. &ck=) with a random number (or unix epoch timestamp) to the end of the URL.

    Any time we must have a non-cache copy (dynamic PDFs for financial forms, etc) we use this method.
    JEFF STANDEN, Project Manager :: WebGroup Media LLC.
    Cerberus Helpdesk 2.4.0 -- Take Control of your Company Inbox!
    Combat Spam. Improve Response Times. Share Knowledge.
    http://www.cerberusweb.com/

  6. #6
    Join Date
    Oct 2008
    Posts
    22
    force the Command line ipconfig/flushdns
    is that what you want ?

Similar Threads

  1. How To: Install BFD (Brute Force Detection)
    By ToddW in forum Web Hosting - Questions & Answers
    Replies: 0
    Last Post: Feb 5th, 2004, 03:42 PM
  2. Dedicated Server Offer P4 2.4GHz(512k) 512Mb, 80GB(8MB Cache), 200GB Internap/Premium
    By 4web-space in forum Web Hosting - Questions & Answers
    Replies: 0
    Last Post: Nov 23rd, 2002, 06:35 AM
  3. Automatic Refresh, not as easy as it sounds
    By Nicola in forum Website Development & Scripting
    Replies: 12
    Last Post: Oct 11th, 2001, 09:14 AM
  4. Refresh page code
    By tamba in forum Website Design & Graphics
    Replies: 2
    Last Post: Oct 10th, 2001, 10:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Cloud Services

Accounting & Financial
Cloud Hosting
Collaborative Software
Customer Management
Dedicated Hosting
Domain Services
Human Resources
Managed IT Services
Marketing
Online Backup
Operations Management
Sales
Web Hosting
Web Tools

Advertisement