localhost Won't Immediately Update

后端 未结 10 620
轻奢々
轻奢々 2021-01-02 10:31

I have been using XAMPP to connect to localhost to do editing on my computer for websites. I have been using it for over a year now and in the past whenever I would update t

相关标签:
10条回答
  • 2021-01-02 11:14

    I've had the same problem and solved it simply by reloading the current page, ignoring cached content. There is a shortcut that I know works for Chrome and Firefox:

    Ctrl + Shift + R

    I hope it will make life easier for some people.

    0 讨论(0)
  • 2021-01-02 11:14

    I've seen other people with the same problem. They've just moved to WAMP. If there is not a specific reason for you to stick with XAMPP you could give it a try. Hope this helps.

    0 讨论(0)
  • 2021-01-02 11:15

    I experienced this is issue recently using Django 2.1. I tried every browser, cleared my cache multiple times, triple checked that I was using Python's SimpleHTTPServer in the same directory I was writing my code, and even did a full reboot... No luck.

    Right before throwing my MacBook out the window, I solved the problem by changing my Debug setting from False to True. Why did this work? I'm not quite sure since the documentation for this setting doesn't mention that kind of behavior at all, but it was the only thing I could remember recently changing to possibly allude to this ghost bug. If anyone has a specific source to confirm this information, please comment and I will edit my answer.

    Hope this helps anyone about to Hulk smash their computer :-)

    0 讨论(0)
  • 2021-01-02 11:16

    First thing to try would be clearing browser history/cache and reloading the browser.

    If you enabled some kind of caching that might also explain it.

    You could test by creating a new page on localhost and see if it works. If so, then check that any pages you're changing on localhost are actually being updated (check the file modified times and close/reload the source to see if the changes are actually there).

    0 讨论(0)
提交回复
热议问题