Results 1 to 2 of 2

Thread: forcing chrome to clear cache

  1. #1
    Join Date
    Jun 2008
    Posts
    192
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default forcing chrome to clear cache

    Hello,

    Is there some kind of meta tag in HTML to force Chrome to clear its cache before loading the page? Whenever I make a change to my website, in order to see it in Chrome, I have to hit F12, right-click the refresh button, and select "Empty Cache and Hard Reload". There must be some way of doing this automatically, like in an HTML meta tag.

  2. #2
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    I was looking into this last week actually. I have a website to update in a few days, so I didn't get to try it yet though. Put this in the html on all the pages for the site.

    Code:
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />

Similar Threads

  1. Clear Browser Cache with Javascript?
    By rapster88 in forum Looking for such a script or service
    Replies: 10
    Last Post: 06-30-2011, 07:55 PM
  2. Replies: 1
    Last Post: 08-03-2007, 01:20 PM
  3. .htaccess forcing PHP
    By Diversions in forum PHP
    Replies: 4
    Last Post: 09-29-2006, 01:22 AM
  4. How do I clear cache of page JPG files?
    By Strangeplant in forum HTML
    Replies: 3
    Last Post: 06-13-2006, 12:57 PM
  5. Clear Cache Script
    By Jim Weinberg in forum Dynamic Drive scripts help
    Replies: 12
    Last Post: 02-01-2006, 07:04 PM

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
  •