CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • JS file will not update no matter what I do

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
  • Date Created
    Sunday, April 14, 2024
  • Last Updated
    Sunday, April 14, 2024
  • This Article Has been Viewed
    78 times
  • Short Desc
    When developing websites using JavaScript, the file may not refresh after editing.
  • Details
    When developing JavaScript for your website, you may encounter an issue where the file will not update in your web browser, no matter which browser you use.
  • Recreate Issue
    Editing and refreshing JavaScript code file in a web browser does not work.
  • Resolve Issue
    Scenario #1:
    In Google Chrome
    [Right-click] on the [Refresh] button and choose one of the options.

    Scenario #2: (This is what I have often had to do.)
    Rename the [JS] file and change its name on your web page.
    [Refresh] the web page, and you now have an updated file with a new name that works.
    This file will work with updates, but you may encounter this issue again, as I have. Rename the file again, and it will work for a while longer, but then it will get hung again.

    Scenario #3:
    Reboot the server.

    What I believe is happening is the file is hung, and the only way to resolve the issue is to do as suggested in Scenario #2 or Scenario #3. Scenario #1 does not always work with JS files.